there's a system called check and balances. With this system, we divided our government structure into several branches (for most western countries, it's divided into executive, legislative, and judiciary) . By doing this, we limit the power of the government since it will be restricted at each branches
hope this helps