@psie a function $g$ is continuous on $A$ if and only if for every sequence $(x_n)\subseteq A$ with limit $x_0$ also in $A$, $g(x_n)\to g(x_0)$. Here you built a sequence as in the hypothesis, but which does not converge to $g(x_0)$, so $g$ is not continuous on $A$