Say that we have $f: \mathbb{R}^m \rightarrow \mathbb{R}^n$, that is $C^1$. Also, we know that $f^{-1}: \mathbb{R}^n \rightarrow \mathbb{R}^m$ exists and is $C^1$ too. Intuitively, I think this means that the Jacobian determinant is non-zero and that the Jacobian $\mathbf{J}(f)$ must be square $k \times k$, where $k = m = n$ --- so it means that $m = n$ --- but the Jacobian determinant is only defined for square matrices, so that line of thinking seems tautological.
Is my intuition correct? How would such an argument actually be built up? Please provide hints instead of laying out the answer (I really need to learn this stuff), and I will ask further questions if needed in the comments!