Interestingly enough, in the UK the only government-approved defensive item is a whistle. So in the UK your comment wouldn't be seen as a joke. It would be seen as a dangerous and radical idea.
I’ve seen some air rifles lately that will do the trick nicely!