Gandalf only uses violence to stop aggressive violence. People try to be way to literal, IMO. I mean, sure, the King Returned... having walked the Paths of the Dead... refusing the Ring... not sure how he felt about taxes. LOTR is not some metaphorical textbook on Anarchy, no, but it is all about how power corrupts.