Does the following claim hold?
Let $f:\mathbb R \to \mathbb R$ be a differentiable function such that $f'(x)\neq 0$ for all $x\in \mathbb R$. Then $f'(x)>0 \, \forall x\in \mathbb R$ or $f'<0\, \forall x\in \mathbb R$.
Note that $f$ is not assumed to be continuously differentiable.