Serial numbers are racist. And homophobic. And Mooselimbphobic.
Better add this “phobic” too...they just might work. Perhaps proper treatment of an offender might work too if you administer suitable public punishment; something they won’t lightly forget should thoughts of repeating it occur.