What do you do if the police enforce a pre-empted powerless statute against you?

Writing to the Mayor is an interesting idea. Do I have to use some sort of special format or go through a certain channel, or can I just say “State law X says this, which conflicts with Town ordinance Y, and officers in your police force say they intend to enforce Y. What’s the deal, yo?”