Say I have two topological spaces $X,Y$ s.t $Y$ has the order topology, and $f,g$ are two continuous functions $g,f:X\rightarrow Y$. I want to show that the set $O=\{x:f(x)> g(x)\}$ is open in $X$. So my attempt was defining $h=f-g$ and looking at $O=\{x:h(x)>0\}$ and proving it's open in $X$, but I'm not even sure if I'm allowed to use the concept of $0$ since I don't know anything about $Y$.
Say I can use this concept, I want to show that there exists such open $U\subseteq Y$ s.t $h^{-1}(U)=O$, and by continuity I'm done. So I thought about defining $U=Im(h)\cap V$ where $V=\{y\in Y:y>0\}$ which is simply the ray $(0,\infty)$ in $Y$ and obviously open. So $U$ is open in the subspace topology of $Im(h)$ and therefore $O$ is open in $X$.
Is my approach correct?
In this answer I show that $\{x\mid f(x) \le g(x)\}$ is closed when $f,g$ are continuous. Your set is its complement, thus open.
We only need the order and product topology to see this.