You more rarely get a mobs of educated people so in that education is an important factor for a functioning democratic society.
Otherwise it is a question of force and then you just need to protect your desire to rule against others. In my opinion that would be difficult in an educated society. On the other hand there are more often mobs that try to declare legitimacy of a ruler instead of promoting democracy. So the equation of democracy with mob rules is plainly wrong. Most mobs end in autocracies, and mob rule is more prevalent here as well. It is the result of a very short sighted analysis. A common one, a mob one in my opinion. That should of course be part of the curriculum.