According to the formal definition of limits,
Let $f(x)$ be a function defined on an open interval $D$ that contains $c$, except possibly at $x=c$. Let $L$ be a number. Then we say that
$$\lim_{x \to c} f(x) = L$$ if, for every $\varepsilon>0$, there exists a $\delta>0$ such that for all $x\in D$ with
$$0 < \left| x - c \right| < \delta$$ we have
$$\left| f(x) - L \right| < \varepsilon$$
Suppose now we have a function $f(x)=x$. Now if we want to calculate the limit at 0, we just replace x by the value 0. What decides that it is correct and is the only possible limit? We could as easily have chosen 1 as our limit still satisfy the formal definition by staying within the error limits. Why is this so?