Suppose I have a function (which may or may not be continuous) $$f: X\rightarrow\mathbb{R}$$
where $X$ is a metric space, with distance $d: X\times X\rightarrow \mathbb{R}$. By abuse of notation, we also define the distance between a point in $X$ and a subset $X'\subset X$. As usual, $$d(x,X')\overset{\text{def}}{=} \inf\{d(x,x')\mid x'\in X'\}$$
Let $x\in X$ be a zero of $f$, i.e., $f(x)=0$, and we define the set $A$ as $$A\overset{\text{def}}=\{x\in X\mid f(x)< 0 \}$$ We assume $A\neq \emptyset$. Then, is it correct to claim that $d(x, A)=0$ (so x is in the closure of $A$)? Any counter-example?