At a more abstract level, which is hinted at in the question you link to is the fact that:
$$((\sqrt{2},\sqrt{3})\cup(-\sqrt{3},-\sqrt{2})) \cap \mathbb Q =([\sqrt{2},\sqrt{3}]\cup[-\sqrt{3},-\sqrt{2}])\cap \mathbb Q$$
tells us that since the set equals a closed interval intersected with $\mathbb Q$, it inherits its closedness from the topology on $\mathbb R$ (as $\mathbb Q$ has the subset topology induced by $\mathbb R$).
However, we can certainly do this without appealing to embedding $\mathbb Q$ in a larger space. To prove it, we just need that $\{x\in \mathbb Q :x^2\leq 2\}\cup \{x\in\mathbb Q : x^2\geq 3\}$ is open. Both the components of that union happen to be open, so I'll just prove one, and the other has an analogous proof. In particular, starting from the fact that there is no rational such that $x^2=2$, it follows that if $x^2\leq 2$, then $x^2<2$. Then, notice that, for $d<|x|$ we have $$(|x|+d)^2=|x|^2+2|x|d+d^2<x^2+3|x|d$$
hence if we set $d=\min(|x|,\left|\frac{2-x^2}{3x}\right|)$ it is clear that for all (rational) $y$ in the ball of radius $d$ around $x$ are in the set $\{x\in \mathbb Q : x^2\leq 2\}$. Thus that set is open. Then, you prove the other set is open, and conclude that the complement of the given set is open, hence the given set is closed. (This is a lot harder than just treating $\mathbb Q$ as a subset of $\mathbb R$)