I need to prove the following question
Question
Let $g(z)$ be an entire function such that there exists an $\alpha > 0$ such that $\left|\operatorname{Im}(g(z))\right| \le \alpha$. Prove that $g(z)$ is a constant function.
My first thought was to use Liouville's theorem. As that states, for an entire function $g$, if $g$ is bounded, then $g$ is constant.
So if we could prove that $g$ is bounded, then by Liouville's theorem, $g$ is constant.
I have attempted to prove that $g$ is bounded, but I am struggling. Some help would be much appreciated.