Let $A\subset \mathbb{R}^n$ a set with Hausdorff–Besicovitch fractal dimension $d \le n$, then be a continuous function $f:A\to \mathbb{R}^m$ with $m\ge n$.
Under what conditions the HB fractal dimension is preserved? It seems that if $f$ is Lipschitz continuous with inverse $f^{-1}$also being Lipschitz continuos, then both $A\subset \mathbb{R}^n$ and $f(A)\subset \mathbb{R}^m$ have the same HB fractal dimension (equivalently $f$ is a bi-Lipshchtiz continuous or Lipeomorphism).
Suppose that $f:\mathbb{R}^n\to \mathbb{R}^n$ is a homeomorphism such that for each subset $A\subset\mathbb{R}^n$, $\dim(A)=\dim(f(A))$. Does it follow that $f$ is a Lipeomorphism? [edited in response to a comment]