According to the law only. However, said laws are not in line with the Constitution which would otherwise give such laws their legitimacy.
Meaning, the only way they can enforce such arbitrary and capricious laws is with their own government guns via force.
We used to not like such things and fought wars to prevent it.
That is unfortunate, but true. The government does disregard the Constitution quite often.