Say an armed evildoer broke into your house with the possible intent of harming you.
They could also want to violate your wife or husband or child and/or perhaps steal and rob you. etc.
Depending on the details of the situation and if you live in Texas, under certain circumstances you can shoot them.
It has been done and the law covers it.
The Texas Castle Law or Texas Castle Doctrine or Texas Castle Bill is the document to study if you want to know more.
Here is a sample:
(a) Except as provided in Subsection (b), a person is justified in using force against another when and to the degree the actor [he] reasonably believes the force is immediately necessary to protect the actor [himself] against the other’s use or attempted use of unlawful force. The actor’s belief that the force was immediately necessary as described by this subsection is presumed to be reasonable if the actor: Read more