Warning shots seem to indicate an intruder is leaving, in which case the danger is not imminent .
If a intruder has not made entry yet there is no danger. Warning shots are a bad idea from my point of view. Besides the "intruder" may not actually be and intruder and may call the cops to arrest you for shooting in his direction. In which case you go to jail, not them.