You have reformulated the divisibility statement into an equivalent fractional form. Although the fractional form of the statement may seem to be intuitively clearer (even obvious), it does require rigorous proof, since it is not true in all rings. For example, in the ring $\, R = \Bbb Z[\sqrt{12}] = \{j + k\sqrt{12}: j,k\in\Bbb Z\}\,$ we have $\,x^2 = (\sqrt{12}/2)^2 = 3\in R\,$
but $\,x\not\in R.\ $
One simple way to proceed is to note that $\,x\in\Bbb Q,\,\ x^n\in\Bbb Z\,\Rightarrow\, x\in\Bbb Z\,$ is an immediate corollary of the Rational Root Test, so you can use that if you have it available. Alternatively you can prove it directly using the Fundamental Theorem of Arithmetic (existence and uniqueness of prime factorizations, i.e. $\,\Bbb Z\,$ is a UFD), or various closely related properties such as Euclid's Lemma, the Bezout identity for the gcd, various gcd laws, etc.