I ran into this question looking at "obvious theorems that are false".
Link: https://math.stackexchange.com/a/827393
Someone gave the example of
If you have a continuous function $$f:\mathbb{R} \rightarrow [0,\infty)\, \text{ such that } \int_{-\infty}^\infty f(x)\,dx < \infty, \text{ then } \lim_{x \to \pm \infty}f(x)=0$$
I am having trouble understanding why this is false. If you have a function that is strictly non negative than wouldn't the only possible way of having an integral that doesn't go to $\infty$ is if your function gets very close to zero.