Ready a crossbow at home, if those thieves came into your house, you have the right to shoot them, but then you must give out a loud "bang" warning shot before you shoot your bolt to them, but really try to acquire a long-ranged weapon legally 1st.
As the buggers trespassed your territory (into the house fence already), and you'd give out warning shots, the loud boom with bright flash fireworks, if they still "hesitant" to go away, phone police, then shoot those buggers down, when the police arrived, you said they came into your compound and attempt to assault you or anything, and you are doing it for the sake of your family's safety. By law, you're not wrong as they are the 1 who are trespassing and you thought they are burglars or something.
Such case happens to a distance friend of mine, but he got a gun, home-made one la, not legal 1. Got 4 burglars came into the compound, he saw them and shouting them to go away while he sound off the car alarm, the burglars also challenge him to come down and fight. Neighbors shocked and came out to see whats going on. He go in to get his phone and gun, phoned police, then shoot 1 round at the sky while talking with the police as warning shot to those buggers. Those buggers still not go away, still wondering at the gun is a toy and resume taunting. But then, he shoot 1 of them in the thigh and 1 of them in the legs. The rest runs away and the police came. All four burglars are caught, my friend give the gun to the police as confiscated firearms, the court only fine him for carrying a non-licensed weapon and the judge himself ask him to get a license next time. A few hundred only, better your life been taken away. Right guys?