Well the intentional way to beat it would be to go up as fast as you can during that "temperature" attack to stay above the number it has and wait it out(around 45 seconds). But we are aware this mechanic of the boss is not clear or well executed so we are currently overhauling the fire boss for the next update.
Thank you for playing and commenting!