A city worker trying to avoid his own #MeToo moment is now facing a 25-day suspension for berating a woman for breast-feeding in his office — all because he didn’t want to be accused of sexual harassment.

Office of Administrative Trials and Hearings Judge Astrid Gloade recommended the penalty for Human Resources Administration job-opportunity specialist Terry Payton on Monday.

Payton was doing casework for a woman whose initials are R.M. on Sept. 12, 2017, when R.M.’s adult daughter K.S. began breast-feeding her 10-month-old child in Payton’s office, prompting him to shout at her to scram, according to the judge’s ruling.

“I don’t want to be accused of sexual harassment,” he was overheard shouting by colleagues, the ruling states.

Payton had received training about the office’s breast-feeding room four months before, according to the decision.

HRA does “not tolerate unprofessional behavior from any public servant” and will ultimately decide Payton’s punishment after he is given an opportunity to respond to the ruling, agency spokeswoman Lourdes Centeno said.

Payton’s lawyer did not return a request for comment.