My textbook gives the following definition of a limit:
Let $A\subseteq\mathbb R$, and let $c$ be a cluster point of $A$. For a function $f:A\to\mathbb R$, a real number $L$ is said to be the limit of $f$ at $c$ if, given any $\varepsilon>0$, there exists $\delta>0$ such that if $x\in A$ and $0<|x-a|<\delta$, then $|f(x)-l|<\varepsilon$.
Why is it that definition of limit is always defined at the cluster point and not any other point of the domain?
Please answer in a way that is easy to understand because I have just started this course so I am not very familiar with topology.
Suppose that $e$ is not a cluster point. Then at an intuitive level, there is not a sequence of points "leading up to $e$", and for limits, we tend to think of points 'getting closer and closer to $e$', and then examine the values of our function $f$ at those points, and compare those values to $L$.
Think of a set like $X = [0, 1] \cup \{2\} \cup [3, 4]$. For any function $f$, no matter what value you picked for $L$, the definition of 'limit', applied at $x = 2$, would say that the limit of $f$ at $2$ was $L$. That's a little weird, because "the limit of $f$ at $2$" should be (at most!) a single value, not a whole range of them. To avoid this messiness, we rule out isolated points in the definition.
In particular, we can say "If the limit of $f$ at $x = c$ exists, it is unique." which is a very useful lemma to carry around in your pocket.