That is also flawed in several parts:
1. If one does not know that which one is swearing yip uphold, then one is an idiot. A very useful idiot.
2. Rarely, if ever, do police actively uphold parts of oaths to protect, life, liberty, or property.
3. My morality includes the maximum "make no oaths." Swearing what is essentially fealty to an evil, always increasingly despotic system is ignorant at best, and life-changingly destructive at worst.
4. Police are essentially a standing army. They ignore proscriptions (I'm in the US, so I am biased in my view on these things) to have no standing armies because standing armies lead to taxation and taxation leads to despotism.
My pretext is that ALL HUMAN GOVERMENT IS EVIL. Humans are meant to rule over their immediate families and not others. Scaling even just a little too large is something that most people are incapable of doing well, and that, IMO, is by design.
So, I entirely reject the police as both a concept and as a supposed necessity since the very foundation of their existence demands coercions of inestimable harm for their very existence.
Can otherwise good people take part in that system ignorantly? Yes. But that is no excuse and does not change the fact they are choosing to perpetuate their livelyhoods literally by the coercion of others.
You may also tell that from my perspective I value externalizing "safety" to others exceedingly little since in practice every adult human is only responsible for themselves, with some rare exceptions.
So yes, I think you are just flat wrong, no matter how flowery a sentiment you wish to frame "the police."