the answer to this question is Due process
With the existence of the due process, the legal authorities will have a limitation that prevent them from abusing their power.
One example of this is the fact that police officers are required to show a warrant before they could enter and search a private property.