Let $E$ be a normed vector space and $H = \{x \in E; f(x) = \alpha\}$. If $f$ is continuous then because $\{\alpha\}$ is closed $f^{-1}(\alpha) = H$ is also closed.
Now assume that $H$ is closed which means it contains all its limits points. Let $x_n \rightarrow x$. I claim that $f(x) = \alpha$. Since $f(x_n) = \alpha$ for all $n$, then for all $n$ and all $\epsilon > 0$ $$|f(x_n) - \alpha| < \epsilon$$ which shows that $f(x_n) \rightarrow \alpha$.
Is my proof correct? In Brezis' book this is proved without using sequences but it's a little more complicated.