> **Fact:** For any matrix $A$, $A$ will have the same nullspace as $A^TA$.
Note that if $m \geq n$, then $A$ is rank-deficient if and only if $A$ has a non-trivial nullspace. $A^TA$ is a square matrix, so we similarly conclude that if $A^TA$ has a non-trivial nullspace, it is rank-deficient. So in this case, $A$ is rank deficient if and only if $A^TA$ is rank-dificient.
On the other hand, if $m < n$, $A$ will automatically have a non-trivial nullspace, so $A^TA$ will be rank deficient whether or not $A$ happens to be as well.
In either case, the desired implication holds.
* * *
A similarly useful fact is the following: for any matrix $A$, $A$ will have the same column space as $AA^T$.