I am reading a proof of Fatou's lemma and I don't follow a step. Consider a sequence of non-negative measurable functions on $X$ to $\overline{\mathbb{R}}$. Fatou's lemma states that
$$\int(\lim\inf f_n)\,d\mu\leq\lim\inf\int{}f_n\,d\mu$$
where $\mu$ is a measure on $X$. The proof begins by considering the sequence
$$g_m=\inf\{f_m,f_{m+1},f_{m+2},\ldots\}$$
therefore, if $m\leq{}n$ we have that
$$\int{}g_m\,d\mu\leq\int{}f_n\,d\mu$$
as long as $m\leq{}n$. The next step states that implies
$$\int{}g_m\,d\mu\leq\lim\inf\int{}f_n\,d\mu$$
I don't see this. How does this follow?