Don't use the height directly to display the text, but rather store it in a variable instead and only count up the variable, if the current height is higher than the value already stored. So no matter if the player goes down again, the variable will hold the highest point.