@kingrat Not sure I get the metaphor.
It is certainly plausible that it is not possible to guard against an electorate that is hell-bent on willingly voting to destroy the government institutions. That would be a very useful research result if someone could model and prove it.
Without that evidence, I see there are a lot of no-brainer things that could be done to reduce the likelihood of harms (often the best outcome a threat model can give you)
E.g. prohibiting felons from holding office