A Harlem mom turned an alleged would-be rapist over to the cops after watching the news and recognizing the familiar face of the suspect — her own teen son.

Anthony Ramon, 19, was taking in the TV news with his mom, Brenda, on Wednesday night when they saw a report on the harrowing Washington Heights rape bid, police sources said.

After detailing how the creep tried to force himself on the 33-year-old victim in her West 172nd Street apartment building around 1 a.m. Saturday, the report flashed a surveillance photo of the suspect, whom Brenda immediately recognized as her son.

“She came and woke me up,” Ramon’s dad, Franklin, told The Post. “Then I went and got dressed and we took him over to the precinct.”

Ramon was arrested on a slew of charges including attempted rape, burglary and stalking.

He spotted the victim aboard the northbound C train in Midtown, got off at her stop, and trailed her to her building, authorities charge.

Ramon allegedly followed her into the elevator, where he exposed himself and started to masturbate, police said.

He grabbed the repulsed victim’s arms and attempted to force himself on her, but she managed to run off the elevator and into her apartment, cops said.

She was uninjured in the frightening ordeal.

“It was shocking, to see your son up there, wanted for some crime that we knew nothing about,” Franklin said. “He’s a good kid, goes to college, works in the night.”

Ramon was awaiting arraignment at Manhattan Criminal Court.