A New York City cop charged with raping his pregnant stripper ex-girlfriend punched her in the face and menaced her with both a gun and a knife during the alleged attack, sources said yesterday.

The 23-year-old woman dated Officer Arthur Roldan, 28, for two years. After a recent breakup, the two had just begun to talk again.

She agreed to meet him late Tuesday night, and he parked his car by the Staten Island waterfront, at Father Capodanno Boulevard and Lincoln Avenue, a notorious lover’s lane.

It was there that she performed oral sex on him, sources said, but when she told him that she wanted to stop, he allegedly punched her in the face, pulled a folding knife and a handgun and forced her to have intercourse.

He threatened her with the gun to force her to have sex and with the knife to prevent her from stopping, the sources added.

Cops arrested Roldan, a six-year veteran assigned to the 78th Precinct in Park Slope, Brooklyn, the following day.

They seized a folding knife, a .32-caliber gun and his 9mm service weapon.

It was not known whether he also used the NYPD-issued gun in the attack.

In court yesterday, Judge Mario Mattei set Roldan’s bail at $20,000 cash on two counts of first-degree rape, two counts of second-degree menacing and one count of third-degree assault.

The judge also warned that if Roldan has any further contact with his ex, his bail will shoot up to $200,000.