When proving if $f:\Bbb R \rightarrow \Bbb R$ has limits as $x \rightarrow \pm \infty$, then $f$ is bounded on $\Bbb R \setminus [A,B]$ for some $A,B \in \Bbb R$, should we prove that
$f$ has a lower bound on $(- \infty,A)$ and an upper bound on $(B, \infty)$ or
$f$ has an upper bound and a lower bound on $(- \infty,A)$ and an upper bound and a lower bound on $(B, \infty)$ ?

We have: $$ \mathbb{R}/[A,B]=(-\infty,A) \cup(B,+\infty) $$
so we have to prove that there is an upper and a lower bound of the function in $I=(-\infty,A) \cup(B,+\infty)$. But , if $A\ne B$ this set has two disjoint components, so we need an upper and lower bound on each component, and the upper bound in $I$ is the greatest of the two upper bounds ( and the lower bound is the lowest of the lower bounds)