Consider the IVP given by
$ \frac{dx}{dt} = f(x), x(0)=0,$ where $f(x) =1$ if $x<0$ and $= -1 $ if $x \geq 0$
There exists no solution to this IVP on any interval $[0, T], T> 0$.
Incorrect proof: Suppose that there exists a solution to this IVP, given by $x: [0,T] \to \mathbb{R}, T >0$. Clearly $x(t) \neq 0$ for all $t \in (0, T]$ because $f$ is not continuous at 0. So suppose that $x(T) > 0.$ Then $x(t) > 0$ for all $t \in (0, T]$ and consequently $f(x(t)) = -1 $ for all $t \in (0, T]$. Then $ \frac{dx}{dt} = 1$ for all $t \in (0, T]$ and so $x(t) = -t$. So $x(t) = -t$ is a solution to the IVP but the proposition says that there is no solution, so we have a contradiction.
Where is the error in this proof?