There is kindergarden police, university police, shopping center police, etc.
Being a free country, you can flip a bird to any officer if you feel like it. Not against the law. But if for any reason, they tell you to pull over and show ID, just freaking do it! Cooperate with the police, and you will never go wrong. There are tons of people sitting in the county hoosegow because they thought is was ok to scuffle, or refuse to ID themselves, etc. "checking people out" is how cops find bad guys. If you are not a bad guy, just suck up your pride and you will be on your way!
Don't go to places where bad things happen, and bad things won't happen to you! ( I have been down some dark alleys in Olongapo and Pattya Beach. That doesn't count!)
I am 65 and have never been rousted by the cops for any reason. I don't act up in public, don't go out after dark, etc! Remember, nothing good ever happens after midnight!