What you are describing is the judiciary in any functioning democracy. Separation of powers requires an independent judiciary system.
They have to be unelected, so they keep their independence when evaluating if the laws are being applied according to the written law.
> Now that's okay to a degree, but the question is: where does the buck stop?
With proper separation of powers and an independent justice system, like the one that judged Le Pen and found her guilty.
I would only see thorniness is the courts refused to punish Le Pen out of fear of punishing a somewhat popular politician, as this would embolden others to act in ways to break the rules, and would undermine the independence of the court, which is a core tenet of a functioning democracy.
I think you only see thorniness here because you wanted Le Pen to keep doing her thing. See? it works both ways.
That's entirely the wrong way to think about government. Government isn't about rules, it's about allocation of power. You have to think about government in terms of who is entrusted with power to make which decisions. If you entrust judges and lawyers to decide "when rules are broken" by elected officials, you give them power over those officials, and over voters.
Now that's okay to a degree, but the question is: where does the buck stop? If you design a system where the buck stops with lawyers and judges, then you've effectively given those lawyers and judges power to overrule voters. It's better to design a system where the lawyers and judges demur in situations like this, to avoid a "tail wagging the dog" situation where the legal system is invoked to resolve a political dispute.