Not sure I follow exactly why, but this is how you could set the heater to come on between certain times and temps.
Fallback ON
Set OFF
If Time 18:00 to 09:00 Then ON
If Temp < 77.0 Then ON
If Temp > 78.0 Then OFF
*edit: not tested. Please test my code before you rely on it.