A everywhere finite measurable function $f$ on a measure space $(\Omega,\mathcal{A},\mu)$ such that for all continuous function $g: \mathbb{R}\rightarrow \mathbb{R}$, the composition $g\circ f$ is integrable, then the function $f$ must be integrable w.r.t $|| \cdot||_\infty$, i.e $f$ must satisfy $||f||_\infty<\infty$.
My thought is that $f(\Omega)$ must be bounded in $\mathbb{R}$, but I have no idea.