This is a difficult call to make since a trespasser has no right to be on your property. Today you have no idea what atrocities may be in store if you allow criminals access to your home. Shooting in the air may have been enough to deter this stalker from returning. It sounds like there is more to the story though.
It’s an act first situation. There may be one or more intruders (armed or unarmed).
I was robbed at gunpoint on the street this year, around the corner from where police were running a dwi taskforce. First officer I approached got the hell out of there. Second one I approached took down my statement. Afterwards, the team pulled up stakes and hasn’t returned to that area (even though they’d been there for months).