A Ukrainian man who lied about his name and his age while attending high school in Pennsylvania has pleaded guilty to criminal charges.

Artur Samarin, 23, faces up to 40 years in prison after entering the plea for fraud and sex charges.

Samarin, who called himself Asher Potts, had also been accused of having sex with a 15-year-old girl.

The arrest affidavit said Samarin told a detective he had sex with the girl in the fall of 2014, when he was 22.

Samarin had been a well-liked student at the Pennsylvania high school and had been accepted into a college in Florida before authorities discovered he was considerably older and was a Ukrainian citizen who overstayed a student work visa.