Solution 1:

The major gap in the proof is your failure to justify why $\lim\limits_{t\to x} f(t)$ even exists.