Fix max temp when max temp = critical temp

If the max temperature in BIOS is set to same value as
critical or too close to critical, we need to adjust the max temp.
Otherwise it will result in powerdown once reach critical temp.