In the past I have found myself making this mistake (probably fueled by the fact that you can indeed extend bounded linear operators), and I think it is common in students with a not-deep-enough topology background:
"Let $T$ be a compact topological space, and $X\subset T$ a dense subset. Take $f:X\to\mathbb{C}$ continuous and bounded. Then $f$ can be extended by continuity to all of $T$ ".
The classical counterexample is $T=[0,1]$, $X=(0,1]$, $f(t)=\sin\frac1t$ . It helps to understand how unimaginable the Stone-Cech compactification is.