If only your country operated on the Peelian principles of policing: https://en.wikipedia.org/wiki/Peelian_principles
Relevant fictional quote:
There's a reason you separate military and the police. One fights the enemies of the state, the other serves and protects the people. When the military becomes both, then the enemies of the state tend to become the people. - William Adama
Is that a problem for the Gendarmerie?
In the US police have no obligation to protect the people.