I have seen the reason you are referring to, but it is not sufficient. Without the change of $\lim$ and $\int$ signs, you can’t claim those two quantities to be equal. Right now, I am unable to recall some examples for it, but certainly, there are many examples.