I think you're on the right track. To make the argument more precise, for each subset $E$ of $X$ consider the function $f_E$ defined by $f_E(x)=1$ if $x\in E$ and $f_E(x)=0$ otherwise. What is $f_E^{-1}((0,\infty))$?
I think you're on the right track. To make the argument more precise, for each subset $E$ of $X$ consider the function $f_E$ defined by $f_E(x)=1$ if $x\in E$ and $f_E(x)=0$ otherwise. What is $f_E^{-1}((0,\infty))$?