My question is based on this post, which I summarize below.
Claim: Let $(X, \textbf{X})$ be a measurable space, $f:X \to \mathbb{R}$ is X-measurable, $g: \mathbb{R} \to \mathbb{R}$ is continuous. Then $g \circ f$ is X-measurable.
Pf: WTS $(g \circ f)^{-1}( \alpha, \infty) \in \textbf{X}$, $\forall \alpha \in \mathbb{R}$. We have $(g \circ f)^{-1}( \alpha, \infty) = f^{-1}(g^{-1}( \alpha, \infty))$. Now $g^{-1}( \alpha, \infty) \in \textbf{B}$ (is a Borel set), since g is cont. Thus, $f^{-1}(g^{-1}( \alpha, \infty)) \in \textbf{X}$, by this result.
Looking at the Pf, it seems the only property of g being cont that we used was that $g^{-1}( \alpha, \infty) \in \textbf{B}$. But if we weaken the hypothesis to g being B-measurable, then it seems that it's still true that $g^{-1}( \alpha, \infty) \in \textbf{B}$, again by the cited result and since $( \alpha, \infty) \in \textbf{B}$.
Is this true? Sorry I'm new to measure theory and unsure. After all, if it was true, why bother with the special case that g is cont at all, since the proof technique would be no different?