For a counterexample let $e_i, i=1, 2, \ldots$ be the standard unit vectors in $\ell^2$, and $X$ the union of the line segments $L_i$ joining 0 to $e_i$ for all $i$.
For a counterexample let $e_i, i=1, 2, \ldots$ be the standard unit vectors in $\ell^2$, and $X$ the union of the line segments $L_i$ joining 0 to $e_i$ for all $i$.