I would refrain from shooting it unless is poses an immediate threat to you or your loved ones and shooting it is the only way to stop it.
You could, I don’t know, love it? But based off your first instinct I’m unsure of your capacity to do such things.
Don't shoot it if it's not attacking anyone... if it looks like a stray and it likes you then maybe you could keep it, give it to a shelter, or just let it go. But if it looks like someone's pet then just wait for it to leave and go home... and most of all, remember to tell him he's a good boi