Great idea, stream has a range of approx 20 to 30 feet depending and can contain 2+ good shots. I keep a can in my drivers side door lower sleeve and a can at my front door and a can in my bedroom near my nightstand. Hit someone or an animal in the face near their eyes and they are going down hard and fast in the case of it being used on a human and will likely need medical care to flush the spray from their eyes.
Very effective and a hell of a lot cheaper than a gun. Of course that is my backup just in case.
It's also a criminal offense to use wasp spray for any "off-label" uses, and there's nothing on the label about spraying dogs.
Just read the label. Presuming you can.