A former police officer pleaded guilty to assault after shoving his neighbour during a heated dispute over a car trailer.