And the rest is luck.
In most cases, you will be violating rental car contract if you take the car to unpaved roads (very easy and tempting to do in Alaska) and then if your car broke down, you are totally on your own. Some rental car companies may also have policies against driving rental cars into Canada.