British law (Scotland is a law unto itself but it cleaves to the same sorts of principles) allows reasonable force to be used to defend oneself from a perceived imminent threat and that can include firearms and other forms of lethal force in some cases.