Here are some hints. But it still takes some work.

The high-point/low-point theorem says that any continuous function on a closed interval has a maximum and a minimum.

is a closed interval. So?

But you know that f does not have maxima nor minima on .

Thus what can you conclude?