I am reading a real analysis textbook, and need help clarifying/unpacking the definition of $\limsup$ and $\liminf$.
Given a sequence $\{a_n\}$ of real numbers,$$\limsup_{n \to \infty} a_n = \inf_n \sup_{m \ge n} a_m, \quad \liminf_{n \to \infty} a_n = \sup_n \inf_{m \ge n} a_m.$$ We use analogous definitions when we take a limit along the real numbers. For example,$$\limsup_{y \to x} f(y) = \inf_{\delta > 0} \sup_{|y - x| < \delta} f(y).$$
Any help would be well-appreciated. Thanks!

$\limsup, \liminf$ definitions in most textbooks are cryptic (like the one in your question) in the sense that they are written very concisely using symbols and are normally not accompanied with some detailed explanation (note that examples are not substitute for explanation, rather they complement it). The best treatment (in my opinion) of these concepts of $\limsup, \liminf$ is in Hardy's classic textbook A Course of Pure Mathematics. I present the same below.
Let $a_{n}$ be a sequence and consider any number $K$. We have three mutually exclusive and exhaustive possibilities:
If $a_{n} = (-1)^{n}\left(1 + \dfrac{1}{n}\right)$ and $K = 1.5$ then the first possibility occurs. If $K = -1.1$ then second possibility occurs and if $K = 0$ then the third possibility occurs. You should convince yourself that these numbers fit the possibilities described above.
Hardy calls the numbers of type $K$ in the first possibility as superior numbers (with respect to sequence $a_{n}$). And those numbers $K$ which fit the second possibility are called inferior numbers. The numbers $K$ fitting third possibility are called intermediate numbers.
It is easily seen via these definitions that
The next step is to consider the set of all numbers which are superior with respect to sequence $a_{n}$ i.e. $$A = \{K\mid K\text{ is superior with respect to }a_{n}\}$$ If the sequence $a_{n}$ is bounded then the set $A$ above is bounded below and hence there is a greatest lower bound for $A$. We define $$\limsup a_{n} = \inf A = \inf\, \{K\mid K\text{ is superior with respect to }a_{n}\}$$ so a $\limsup$ is almost like the smallest number superior to sequence $a_{n}$. For the example sequence we have $\limsup a_{n} = 1$. Similarly $$\liminf a_{n} = \sup\,\{K\mid K \text{ is inferior with respect to }a_{n}\}$$ so that $\liminf a_{n}$ is almost the greatest number inferior to $a_{n}$. For the example given above $\liminf a_{n} = -1$.
What do we gather from the above discussion? Well we have the following two obvious properties for $M = \limsup a_{n}$:
We have similar properties for $m = \liminf a_{n}$ which you can formulate yourself. Note that in practical applications of the concept of $\limsup$ and $\liminf$ we need the above properties and not their actual definitions.