Something very basic seems to slip my mind. Let's say that one wants to calculate the integral
$$\int_0^{2\pi}(1 + \sin \theta) \ d \theta$$ which is obviously equal to $2 \pi$.
Suppose that they, for whatever reason, want to use the substitution $u=\sin \theta$. If one tries to naively change the limits of integration, then both the lower and upper limits become $0$, which is wrong, since then the integral would vanish, which is not the case.
Where have they gone wrong?