Let $X \subset \mathbb{R}^{n}$. Prove that if all set (subsets of $\mathbb{R}^{n}$) homeomorphic to $X$ is bounded, then $X$ is compact.
Let $\varphi: Y \to X$ be an homeomorphism. Since $Y$ is bounded, $Y \subset B(0,\delta)$ for some $\delta >0$. If $X$ is unbounded, for all $\delta_{i} > 0$, there is a $f(y_{i}) \in X$ such that $f(y_{i}) \not\in B(0,\delta_{i})$. Thus, we obtain a sequence $f(y_{i})$ such that $f(y_{i}) \to \infty$. But, $f^{-1}$ is continuous, so $y_{i} \to \infty$. Contradiction. That make sense?
Let $f(y_{i})$ a sequence in $X$ such that $f(y_{i}) \to a$. We have that $f^{-1}$ is a continuous function, so $$\lim f(y_{i}) = a \Longrightarrow \lim f^{-1}(f(y_{i})) = f^{-1}(a),$$ then $y_{i} \to f^{-1}(a)$, but $Y$ is not necessarily compact. How I show this $a \in X$?
Since you have showed that $X$ is bounded, it suffices to argue that $X$ is closed.
Assume that $X$ is not closed. Then there is $z\notin X$ and $x_n \in X$ such that $x_n \longrightarrow z$.
Then we define $ f: X\to\mathbb{R}^n $, given by $f(x)=\frac{1}{z-x}$, notice that $f$ is continuous and injective, so $f$ is invertible. Furthermore, $f^{-1}(y)= z-\frac{1}{y}$ which is also continuous. Therefore, $f(X)$ is homeomorphic to $X$.
But, since there is $x_n\longrightarrow z$, $f(X)$ is unbounded, which leads to the desired contradiction.