Sure the answer is a couple of extra buttons on his canister. A brief and wispy cloud of yellow or red smoke would make something artistic and punishing. The wrongdoer would walk through the colourful scent of YOU'VE BEEN WARNED or GET OUTTA HERE, learning their lesson as they went.