It's true that not all cops are good people, just like not all teachers are good people or even priests. There are always a few bad apples in everything.
However, when I am approached by the police I always assume I'm dealing with a good one... I don't assume the cop is there to assault me, shoot me, etc.