I know that in a finite ring, an element must be either a unit or a zero divisor. However, the proof that I have seems to also work for infinite ring.
My proof is as such: Assume that a $\in$ R is a unit and ab = 0 for some b $\in$ R. Then $b = a^{-1}(ab) = a^{-1}0 = 0$, so a is not a zero divisor. Similarly, if a is a zero divisor, then a is not a unit.
However, if I am not wrong, in $\mathbb{Z}$, all the non-zero elements are both not unit and zero divisor. What am I misunderstanding here?