Something similar was attempted in Houston in the 1980s and the US Supreme Court struck it down as a clear 1st Amendment violation [1]
> The Constitution does not allow such speech to be made a crime. The freedom of individuals verbally to oppose or challenge police action without thereby risking arrest is one of the principal characteristics by which we distinguish a free nation from a police state.
> The Constitution does not allow such speech to be made a crime. The freedom of individuals verbally to oppose or challenge police action without thereby risking arrest is one of the principal characteristics by which we distinguish a free nation from a police state.
[1] https://www.law.cornell.edu/supremecourt/text/482/451