I think financial penalties against any city, municipality, etc. ... as well as open them to lawsuits and damages to anyone illegally convicted under their laws, would get a lot of idiots voted right out office .. ... very quickly.

I live in a small town, who has a law against "anyone" (including CCW) in the city park..... although State Law preempts them and says no city, municipality, etc. can post, restrict nor prohibit in any common grounds, parks, etc.
But, the Council members in this town, think they are "special" and nothing applies to them.