The facts always dictate the answer to any question, so I don't believe I can give you one definitive answer and say it can never be done, nor can I say it can always be done. It really is dependent on the facts.
One thing is quite clear: from a police perspective we certainly don't encourage the use of firearms. We recognize that there is danger whenever one is discharged, regardless of whether it was aimed to shoot somebody or aimed as a warning. So that obviously raises concerns for us. But I'm not really in a position to say that can never be done, because there will be occasions when it is reasonable.
I can envision circumstances in which the offenders who are on the person's property are gang members. Or you're in an isolated community where the police are hours away, and you can articulate why you were concerned about your safety. You'd have to evidence that. So there are any number of facts that could dictate an answer to this.
What is clear, though, is that we are certainly not encouraging people to bear arms in every incident--but neither can I say they should never be allowed to do so.