Suppose that $X$ is a separable and completely metrizable space. Assume that $g:X \rightarrow \mathbb{R}$ is continuous.
Denote $A = \{ x \in X: g(x)<0 \}.$
Define $\tilde{g}:X \rightarrow \mathbb{R}$ given by $\tilde{g}(x)=g(x)$ if $x \in A$, $\tilde{g}(x) = 0$ if $x \not\in A.$
Question: Show that $\tilde{g}$ is continuous on $X.$
It suffices to check at 'boundary' of $A$, since $g$ and $0$ are continuous functions.
I do not know how to check at boundary of a set. Any hint would be appreciated.