Note that if $x_0$ is a local maximum, there is some $B(x_0,r)$ such that $f(x) \le f(x_0)$ in this ball. In fact, we must have $f(x) < f(x_0)$ for all $x \
eq x_0$ in this ball, as otherwise this would contradict the unique extremum assumption.
If there is some point $x_1$ such that $f(x_1) \ge f(x_0)$, then we see that there is a minimizer in $[x_0,x_1]$ with strictly lower value than $f(x_0)$, and this contradicts the unique extremum assumption.
Hence $f(x) < f(x_0)$ for all $x \
eq x_0$.