To "adhere to" a rule means to follow it:
Monks adhere to a strict religiious code.
Journalists are supposed to adhere to certain rules of ethics.
We don't usually use "adhere to" to talk about laws. Instead, we use it to talk about rules that come from a religion, a philosophy, or a culture.