Let $X\subseteq \mathbb{R}^n$, $f: X \rightarrow \mathbb{R}$: what further conditions on $X$ and $f$ do we need to ensure that $\text{Int}\{x|f(x)\leq 0\}=\{x|f(x)<0\}$?
Context: I've encountered this kind of question when dealing with open bounded $X$ with $C^1$ boundary, in partial differential equations, but I'm sure that one could benefit from such a fact in optimization, for instance.
Clearly, continuity is not enough, since $f:[0,1]\rightarrow \mathbb{R} , f(x)=0$ is such that $[0,1]=\{f\leq 0\}$, but the interior of this set is not the empty set.