Let $M=(0,1) \times (0,1)$. Instead of the usual topology, let us define a basis of neighbourhood of the point $(x,y)$ as the set of all open intervals $I_\delta(x,y)=\{x\} \times (y-\delta, y+\delta)$ where $0 < \delta < \min\{y, 1-y\}$. Define local charts near $(x,y)$ by the maps $I_\delta(x,y) \to \mathbb R: (x,t) \mapsto t$
Am I mistaken for thinking that $M$, endowed with these local charts, is a dimension $1$ manifold, say $M_1$?
Now consider $M$ endowed with the usual topology. It is a dimension $2$ manifold, say $M_2$. Am I mistaken for thinking that the identity of $M$ is an immersion $M_1 \to M_2$?