The definition of $\limsup A_n$ for a sequence of sets $\{ A_n \}$ is
$$
\limsup A_n = \bigcap _{n = 1} ^\infty \bigcup _{m \geq n} A_m.
$$
Under this formulation, it is clear that $x \in \limsup A_n$ if and only if for every $n \in \mathbb{N}$, there is a positive number $m \geq n$ which $x \in A_m$. Inuitively speaking, if we now pick $m = n$ assuming they are fixed in the last step, then there is $m_2 \geq m + 1$ which $x \in A_{m_2}$. This tells you that $x$ must be in infinitely many $A_m$, since this process can be continued indefinitely.
On the other hand, if $x$ is not in $\limsup A_n$, then by De Morgan's law
$$
x \in (\limsup A_n)^c
= \bigcup _{n = 1} ^\infty \bigcap _{m \geq n} A_m^c.
$$
This is the set which there is $n$, which $x$ is not in $A_m$ for all $m \geq n$, meaning $x$ stops belonging to $A_n$ after a finite number of them. This shows that if $x \not \in \limsup A_n$ then $x$ is not in infinitely many $A_n$'s.
I think this problem arises mainly because the book does not bring up the set formulation of $\limsup A_n$, and simply define $\limsup A_n$ as the set which $x$ belongs to infinitely many $A_n$'s.