$f$ is continuous, $\forall x , \lim_{n \to \infty}f(nx)=0 \implies \lim_{x \to \infty}f(x)=0$
A classical problem about limit of continuous function at infinity and its connection with Baire Category Theorem