If someones right got trampled, that is something to take to the court. The law is there to protect the single man or minority from 'the terror of the majority'.
That's why we mean with democracy not just the ability to vote, but also the rule of law . We also mean the trias politica: law making powers, executive power, and judiciary power al separated.
No one said that in a democracy everything will be perfect. It requires work. It at least gives you the tools to improve it. It is a living system.