Spivak defines manifolds in this way:
A subset $M$ of $\mathbf R^n$ is called a $k$-dimensional manifold (in $\mathbf R^n$) if for every point $x\in M$ the following condition is satisfied:
$(M)$ There is an open set $U$ containing $x$, an open set $V\subset \mathbf R^n$, and a diffeomorphism $h:U\to V$ such that $$h(U\cap M)=V\cap(\mathbf R^k\times\{0\})=\{y\in V: y^{k+1}=\dots=y^n=0 \}.$$
And gives this theorem:
5-2 $\,\,\,$ Theorem. $\textit{A subset}$ $M$ $\textit{of}$ $\mathbf{R}^n$ $\textit{is a}$ $k\textit{-dimensional manifold}$ $\textit{if and}$ $\textit{only if}$ $\textit{for each point}$ $x\in M$ $\textit{the following}$ $\textit{“coordinate condition”}$ $\textit{is satisfied:}$
$\quad (C)$ $\textit{There is}$ $\textit{an open set}$ $U$ $\textit{containing}$ $x\textit{, an}$ $\textit{open set}$ $W\subset\mathbf{R}^k\textit{,}$ $\textit{and a}$ $1\textit{-}1$ $\textit{differentiable}$ $\textit{function}$ $f:W\to\mathbf{R}^n$ $\textit{such that}$ $$\begin{align}(1) \ & f(W)=M\cap U,\\ (2)\ & f'(y)\textit{ has rank }k\textit{ for each }y\in W,\\ (3) \ & f^{-1}:f(W)\to W\textit{ is continuous}.\end{align}$$
He then asks to make up a counterexample to Theorem 5-2 if condition $(3)$ is omitted and as a hint says "wrap an open interval into a figure six". But I don't have any idea on how to do that, nor do I have other ideas for counterexamples.
The only idea that I had is to translate Spivak's condition $(C)$ into more comprehensible (i.e., more comprehensible/familiar for/to me) language (see my other question) and then figure out what condition $(3)$ means in terms of the setting which I'm familiar with. But probably it's easier to do this problem directly, I don't know.