That’s why Socrates was executed, for treason really but under different charges because of an amnesty on collaborators imposed by Sparta in exchange for the restoration of democracy. And why Plato was exiled to Syracuse, where he failed to worm his way into Dyonisios’ favor with his transparent flattery.
The Spartan-inspired political system advocated by Plato in The Republic is totalitarian beyond the wildest dreams of a Hitler, Stalin or Pol Pot. It does suggest philosophers ought to be the supreme rulers, which may explain that useless profession’s fondness for the guy, and the excuses they make for him.
Far better to read Karl Popper’s “The Open Society and Its Enemies”, volume 1, “The Spell of Plato” to understand how abominable Plato’s influence has been for mankind.