Let $f:\mathbb{R}\to\mathbb{R}$ be defined as $ f(x) := \begin{cases} x, & \text{if}\ x\in \mathbb N,\\\\ 0, & \text{else,} \end{cases} $
and $T=\mathbb{N}\cup\{n+1/n:n\in\mathbb{N}\}$.
The function $f$ is continuous on $\mathbb{N}$ with respect to the usual metric on the reals, as any function is continuous as every point is an isolated point. And $f$ is discontinuous on $T$ as $|f(n)-f(n+1/n)|=n>\epsilon=1/2$ say. Am I right?