Given some compound inequality like $2x < x^2 < 3x, x \in \mathbb{Z}^+$, what is the reason why the common factor $x$ cannot be divided out? I haven't taken a general algebra course yet, but my hunch would be that the integers not being closed under division wouldn't imply a common factor $x$ couldn't be divided out given that we know $2, 3, x \in \mathbb{Z}^+$ and $\frac{2x}{x}=2, \frac{3x}{x}=3$, and $\frac{x^2}{x}=x$.
The context of the original problem is to prove that no $x$ could exist that satisfies the inequality. I understand his intended solution to the proof, my question is only about why this particular approach is invalid. My professor asserts that dividing away the $x$ is not allowed because our domain is the integers, but clearly dividing by $x$ in this context keeps us in the positive integers. I'd like to better understand what I'm missing.
Thank you!
EDIT: My original post didn't specify that x was a positive integer, several contributors made notes about the possibility of $x = 0$.