I think if you invade someone’s house you deserve what you get. That said, I think we have a responsibility to understand what is and isn’t legal when it comes to the conditions in which we might be willing to use force.
That isn’t to say there aren’t some situations where one might not use force justifiably even though it isn’t legal, but you should know what you are getting into. Especially if you have personally decided you will use deadly force, and most especially if you carry a weapon.
Many a generally good person has lost their freedom after harming or killing someone who may have deserved it because they didn’t understand the law. The specifics vary state to state and I encourage everyone to look into how their own laws apply to the situations in which they think they would use force.
The old “I’d rather be judged by 12 than carried by 6” sounds good, and might be true, but the loss of one’s freedom is often accompanied by the loss of marriages, relationships, finances, and limitations on future opportunities. Doesn’t mean there aren’t some situations where you would take that risk, but at least know what they are.