$A\in \mathbb{Z}$
$\Leftrightarrow x^2\vdots x-1$
$\Leftrightarrow x^2-x+x\vdots x-1$
$x^2-x= x(x-1)\vdots x-1$
$\Rightarrow x\vdots x-1$
$\Leftrightarrow x-1+1\vdots x-1$
$x-1\vdots x-1$
$\Rightarrow 1\vdots x-1$
$\Rightarrow x-1\in \{ \pm 1\}$
$\Leftrightarrow x\in \{ 2; 0\}$