It is a well know result that $$\lim_{x\rightarrow 0} \frac{\sin(x)}{x}=1$$ so we should have the result that $$\lim_{x\rightarrow 0} x^2\sin \left(\frac{1}{x^2}\right)=1$$ yet when I plug the limit into an online calculator it uses the squeeze theorem and shows that $$-x^2 \leq x^2\sin \left(\frac{1}{x^2}\right) \leq x^2 $$ because of the values $\sin$ can take. This leads us to the result that the limit is zero because of the limits of $x^2,-x^2$ as $x$ tends to zero.
Why is the middle line wrong though? I've been sat for a while thinking about it but I can't see why I'm guessing there is something obvious I'm not spotting.
Thanks.
Robert has the correct answer in the comments: $x\to 0$ in the first limit corresponds to $x\to \infty$ in the second limit, so the analogy is incorrect.