Are you currently in Ontario? If so, you have consented to being governed by the Highway Traffic Act, among other laws. If you don't want to be subject to the HTA, you can withdraw your "consent" by leaving the province.
Can you please explain where you got the idea that an act is not a law?