This is a misnomer.
Cops are not actually "to protect and serve", and this has been proven in court.
Their function is to uphold the law. That's it.
And if they do end up going to court: " the court held that California police who stand accused of stealing $225,000 cannot be sued because they never were told specifically that stealing money from people’s homes violates the Constitution"
https://www.ocregister.com/2020/05/14/high-court-to-decide-i...