Let $n\in\mathbb N$, $a,b\in\mathbb R$, $a<b$, and a continuous function $f:(a,b)\to\mathbb R^n$ be given. Now the following holds true:
The set of accumulation points of $f$ at the boundary of the domain (say, at $a$) $$ M:=\{x\in \mathbb R^n\,:\,\exists_{(t_n)_{n\in\mathbb N}\subset(a,b)}\,\lim_{n\to\infty}t_n=a\text{ and }\lim_{n\to\infty}f(t_n)=x\} $$ is either empty, or contains one element, or is uncountable.
Spoken more intuitively, what this should mean is that if a continuous function cannot be continuously extended to the closure of its domain ("$|M|\neq 1$"), then it either diverges to infinity ("$M=\emptyset$") or is "of the type" $\sin(\frac1x)$ ("$|M|=\aleph_1$").
Does anyone know of a citable reference which features such a result? My guess is that if some Analysis book features this result, it'd just list it as an exercise, but this would be better than nothing, of course. Any answer or comment is appreciated!
For the sake of rigor, here's a possible proof:
Assume $|M|\geq 2$, that is, there exist $x_1,x_2\in M$ (with corresponding sequences $(s_n)_n$, $(t_n)_n$, respectively) as well as $R>0$ such that $x_2\not\in B_R(x_1)$. W.l.o.g. we may assume that $s_1>t_1>s_2>t_2>\ldots$ (e.g., by choosing appropriate subsequences). The idea is that given any ball which separates $x_1$ and $x_2$, $f$ has to cross the boundary infinitely many times so the intermediate value theorem plus compactness of balls/spheres in finite dimensions yields a new element of $M$.
Let $r\in(0,R)$. Now by definition of $M$ there exists $N\in\mathbb N$ such that $$ f(s_n)\in B_R(x_1) \quad\text{ and }\quad f(t_n)\not\in B_R(x_1) $$ for all $n\geq N$. This is where we use continuity of $f$ by applying the intermediate value theorem: for every $n\geq N$ there exists $\tau_n\in (t_n,s_n)$ such that the function intersects the sphere of radius $r$, that is, $f(\tau_n)\in S_r(x_1)$. This yields a sequence $(\tau_n)_{n\in\mathbb N}$ which converges to $a$ such that $(f(\tau_n))_{n\in\mathbb N}$ is a subsequence of $S_r(x_1)$. But we are in finite dimensions so $S_r(x_1)$ is compact -- thus there exists a subsequence $(\tau_{n_k})_{k\in\mathbb N}$ such that $(f(\tau_{n_k}))_{k\in\mathbb N}$ converges with limit also on $S_r(x_1)$, denoted by $x_r$. But this all we needed because $x_r\in M$ (by definition of $M$) and $r\in(0,R)$ was chosen arbitrarily, so by injectivity of $r\mapsto x_r$ the set $\{x_r:r\in(0,R)\}\subset M$ is uncountable. $\;\square$