I grew up in the Soviet Union, so when I came to the US, I was prepared to be cautious around the police. (As they say, everything the communists lied to us about capitalism, turned out to be true).
I had little contact with the police, but once, when a police officer clearly wanted to provoke me (he even called me a “kaik,” probably the worst word in his vocabulary for a white person), I behaved like a recruit in a Marine Corps movie, when the sergeant yells at you and you stand at attention and answer only “Yes, sir!” or “No, sir!”. That's exactly what I did... After that, the police officer let me go.
I'm always surprised by americans who don't understand this and try to get something out of the police officer. Propaganda has instilled in them too many unnecessary ideas about freedom. That's the problem.