Function check_canister_ranges