Let $f: \mathbb{R} \rightarrow \mathbb{R}$ such that $$f(x)=\left\{\begin{array}{ll}\sin \pi x & \text { if } x \in \mathbb{Q} \\ 0 & \text { if } x \in \mathbb{R} \backslash \mathbb{Q} .\end{array}\right.$$ Prove that it's continuous only at integer points.
$\text{My attempt:}$ I was trying to prove this using sequential definition of continuity. Let $\{x_n\}$ be any sequence of rational converging to an integer $L$. We need to show, $f(x_n) \rightarrow f(L)$. $f(L)=0$, so we need to show $|f(x_n)-f(L)|=|f(x_n)|< \epsilon$ for $\epsilon >0$. But how do we proceed from here?