New bills usually take a while to become law. They must be debated in principle and in detail. This enables the citizens to let their representatives know what they think. They may write, speak, advertise, or demonstrate in order to influence the judgment of the legislators. Moreover, our representatives do not hold office forever.
Democratic societies convene periodic elections.
Various candidates and parties compete with one another for the approval of the citizenry. Ultimately, then, we the people may approve or reject the decisions of our representatives by voting for them or for their opponents in these elections. This open legislative process cannot, of course, guarantee us against improper restrictions on our liberty, but it can help to minimize the risk. But due process in enacting law is one matter. There must also be due process in applying the law.