Need help in proving the following statement;
Suppose that $f$ is uniformly continuous on a set S, that $\{x_n\}_{n=1}^{\infty}$ is a sequence in S, and that $\{x_n\}_{n=1}^{\infty}$ has an accumulation point $x\in\mathbb{R}$. Prove that it is impossible to have $f(x_n) \rightarrow \infty$ as $n\rightarrow \infty$.
I'm unable to think systematically about this. This is what we know from the statement;
$f$ is uniformly continuous on $S$, this means that for every $\epsilon > 0$ there exists a $\delta >0$ so that if $x,y \in S$ and $|x-y|<\delta$ then $|f(x) -f(y)|<\epsilon$.
Also since $\{x_n\}_{n=1}^{\infty}$ has a partial limit in $S$, this means that there exist $\delta >0$ such that the sequence $\{x_n\}_{n=1}^{\infty}$visits $(x-\delta,x+\delta)$ infinitely often.
I'm not sure how to use the above two definitions to prove that $f(x_n)$ cannot approach $\infty$ as $n\rightarrow\infty$.
Will appreciate any help/hints.
Suppose that $f(x_n)\rightarrow \infty$ as $n\rightarrow \infty.$
First, since $x$ is an accumulation point of $(x_n)$, there is a subseq $(x_{n_{k}})$ such that $x_{n_k}\rightarrow x$, and then $f(x_{n_k})\rightarrow f(x)$ since $f$ is uniformly continuous. (here we use the property that uniformly continuous function can be extented to its boundary)
Now, since $f(x_{n_k})\rightarrow f(x)$, there is $k_0\in \mathbb{N}$ such that for all $k\geq k_0$, we have $$ |f(x_{n_k})|\leq |f(x)|+1. $$
On the other hand, since $f(x_n)\rightarrow \infty$, there is $N\in\mathbb{N}$ such that for all $n\geq N$, we have $$ |f(x_n)|>|f(x)|+1. $$ However, $n_k\rightarrow \infty$, and hence there is a $k'$ such that $n_{k'}\geq N$, and $k'\geq k_0$, we obtain $$ |f(x_{n_{k'}})|\leq |f(x)|+1,\ \ \mbox{and also}\ |f(x_{n_{k'}})|>|f(x)|+1. $$