I don't know why this is bugging me so much, and it's bugging me more that I can't find a more satisfying phrasing.
"For a guard sworn to protect the people to attack them is absolutely outrageous!"
The first fix I can think of that would make it better is adding a comma after "the people" so it reads "protect the people, to attack them".