Let be $A \subset \mathbb{R}^n$ an open set. Show that $B := \{ x \in A \ ; \ d(x,\partial A) \geq \frac{1}{n}, n \in \mathbb{N} \}$ is compact.
I don't have idea how to prove this, I would like to a hint. Thanks in advance!
EDIT1: $n$ is fixed.
EDIT2: I was reading "Calculus on Manifolds" by Spivak and there he assumes that $A_i := \{ x \in A \ ; \ |x| \leq i \ and \ distance \ of \ $x$ \ to \ boundary \ of \ A \geq \frac{1}{i} \}$ is compact for $A$ an open set in $\mathbb{R}^n$. I supposed that $B$ is compact, so the intersection of $A$ and $\{ x \in A \ ; \ |x| \leq i$ would be compact and I thought that the reason for $A_i$ being compact, sorry for not put the full question from the beginning, but nevertheless how to prove that the intersection of this sets is compact?