That only works if everyone in town knows about it and you only catch tourists. If you start nailing locals for something they do all the time, they get really upset.
Perhaps. But usually what happens when city gov't starts relentlessly targeting their own citizens with what amounts to revenue generation via enforcement, the citizens effect change in the gov't so it stops.