I am not sure if the following characterization works.
Suppose the $\mathcal{M}$ is a $\sigma$-algebra in $X$. Let $f$ be a map from $X$ to $[-\infty,\infty]$, that is, $$f:(X,\mathcal{M}) \rightarrow [-\infty,\infty]$$ Then, $f$ is measurable if $\forall \alpha \in \mathbb{R}$,we have $f^{-1}((\alpha,\infty)) \in \mathcal{M}$.
Proof:
Assume that $f$ is measurable and let $\alpha$ to be arbitrary. Note that since $f$ is measurable, we have $f^{-1}((\alpha,\infty)) \in \mathcal{M}$. Since $\alpha$ was arbitrary, then $\forall \alpha \in \mathbb{R}$,we have $f^{-1}((\alpha,\infty)) \in \mathcal{M}$. Now, assume that $\forall \alpha \in \mathbb{R}$, we have $f^{-1}((\alpha,\infty)) \in \mathcal{M}$. In particular, we have that for every $\alpha$, the subset $(\alpha,\infty) \subset [-\infty,\infty]$ is a borel set, so that the collection $f^{-1}((\alpha,\infty)) \in \mathcal{M}$ and thus $f$ is measurable.In particular the set: $$\Omega = \bigcup_{\alpha \in \mathbb{R}} \Omega_{\alpha}, \text{ where } \Omega_{\alpha} = \{(\alpha,\infty) \subset [-\infty,\infty]| f^{-1}((\alpha,\infty)) \in \mathcal{M}\},$$ is a $\sigma-$algebra.
Is this proof correct?
In fact the given condition does not imply that $f$ is measurable. We're given that $f:X\to[-\infty,\infty]$, so $f$ is measurable if the inverse image of every Borel subset of $[-\infty,\infty]$ is measurable. This does not follow from the given condition; the suggested characterization is false.
Counterexample: Say $E$ is some non-measurable set, and let $F=X\setminus E$. Let $f=\infty\chi_E-\infty\chi_F$. Then $f^{-1}((a,\infty))=\emptyset$ for every $a\in\Bbb R$. But $\{\infty\}$ is a Borel subset of $[-\infty,\infty]$, and $f^{-1}(\{\infty\})=E$.