Democracy is a cute system, with a big fat giant flaw: It needs everyone to be properly educated in what the common rulebook is, why it's important, why it's important to talk to each other without resorting to shouting matches and fisticuffs, and how to (at least try to) solve one problem without creating twelve new ones in the process.
Especially that last one is a problem. Classic example is the money printer going brrr. Like in Weimar Germany. Anyone who paid attention in history class, knows how well that went.
But when we start having factions more preoccupied with getting power and lining their pockets than what's actually good for the country, the school system taking to dumbing down and indoctrinating kids instead of educating them, and whole segments becoming death cults in all but name, then democracy dies.