Suppose that $f(x)=\dfrac{\sin(x^2)}x$. Then $\lim_{x\to\infty}f(x)=0$, but the limit $\lim_{x\to\infty}f'(x)$ doesn't exist.
If you try to apply L'Hopital's Rule here as you did, you will be working with$$\lim_{x\to\infty}\frac{x\sin(x^2)}{x^2}.$$But if $g(x)=x\sin(x^2)$, then the limit $\lim_{x\to\infty}g'(x)$ doesn't exist. Therefore, you cannot apply L'Hopital's Rule here.