The Magna Carta had a solution for this:
> Under what historians later labelled "clause 61", or the "security clause", a council of 25 barons would be created to monitor and ensure John's future adherence to the charter.[46] If John did not conform to the charter within 40 days of being notified of a transgression by the council, the 25 barons were empowered by clause 61 to seize John's castles and lands until, in their judgement, amends had been made.[47] Men were to be compelled to swear an oath to assist the council in controlling the King, but once redress had been made for any breaches, the King would continue to rule as before.
Such an arrangement can only work when at least some part of the populace is well armed enough to overthrow the government if things get too bad.