If I robbed a bank I would be putting my life on the line.
Putting your life on the line does not make your actions automatically honorable.
Well let's hope you never end up in a situation where somebody in that position could save your life be putting theirs on the line. Which, by the way, most serving police would do without question.
It's fine not to have a very high opinion of the police, quite a lot of people don't, but questioning their integrity in a potential life or death situation is going way below the belt and makes you sound nothing better than an anarchist.
And frankly, a dick.