Suppose you have a sequence of functions indexed by $n\in\mathbb{N}$, for $x\in[0,1]$, defined by $f_n(x)=ne^{-nx}$. Is it true that $$\lim_{n\to\infty}\int_0^1f_n(x)dx= \int_0^1\lim_{n\to\infty}f_n(x)dx.$$
The answer is no. I post the question as a teaching example for people unsure of what could go wrong, especially because $f_n(x)$ is an expression that is fairly common in econometrics/economics and I've seen people just recklessly exchange limit and integral.