Aristotle said this quote

When states are democratically governed according to law, there are no demagogues, and the best citizens are securely in the saddle; but where the laws are not sovereign, there you find demagogues. The people become a monarch... such people, in its role as a monarch, not being controlled by law, aims at sole power and becomes like a master.