You’re talking about “Stand Your Ground” laws. They allow you to shoot in self-defense when someone enters your home or otherwise threatens you. This is why George Zimmerman got off after murdering a child. Don’t forget, kids, George Zimmerman killed a child.
Being on your property probably doesn’t count in most states, but I say “probably” because some states are fucking insane, so who knows.