The hint you mention is the Inequality of arithmetic and geometric means, specifically applied to any $3$ non-negative real values.
With your case, as you stated, you have $\frac{x}{y} + \frac{y}{z} + \frac{z}{x} \ge 3$. Thus, $\frac{x}{y} + \frac{y}{z} + \frac{z}{x} = 2$ can't be true. Note this is true in general for any $x,y,z \gt 0$ with $x,y,z \in \mathbb{R}$, not just those where $x,y,z \in \mathbb{N}$.
Update: As mentioned in this answer, I didn't notice originally, so I didn't address in my solution, that you used a specific case of $\frac{x}{y} = \frac{y}{z} = \frac{z}{x}$ in your question. Nonetheless, my final sentence does make clear the result of $\frac{x}{y} + \frac{y}{z} + \frac{z}{x} \ge 3$ is actually true for all positive, real numbers, not just positive integers.