In fact, there's a fact about $\underline{\text{continuous functions which are bijections}}$ the idea of the proof of which comes in handy:
If $f:\Bbb{R}\to\Bbb{R}$ is bijective and continuous, $f$ is strictly monotone.
Proof: Suppose $f$ is not strictly monotone, that is, without loss of generality, $\exists a,b,c\in\Bbb{R}, a<b<c$ such that $f(a)<f(b),f(b)>f(c)$,
call $A=f(a),B=f(b), C=f(c)$, i.e. $A,C<B$
by the Intermediate value theorem, for a $D$ such that $D\in(C,B)$ and $D\in (A,B)$,
$\exists d_1 \in (b,c),$ such that $f(d_1)=D$
$\exists d_2 \in (a,b),$ such that $f(d_2)=D$
but $d_2 \in (a,b), d_1\in (b,c)\implies d_1\ne d_2$ but $f(d_1)=f(d_2)\implies$ $f$ is not a bijection, which is a contradiction. So $f$ is strictly monotone.
($\because $ $f$ is bijective, no equality signs i.e [ $\le,\ge$ ] among $f(a),f(b),f(c)$ have been considered after assuming the negation of $f$ being strictly monotone.)
This fact can be directly used to prove your claim.