A level-three sex offender lured two girls onto his Brooklyn property by offering to sell them a used bicycle — only to lock them in a car and sexually abuse one of them after the other escaped, police and sources said.

The scary events unfolded on July 12 as the two girls, 9 and 11, were walking past the pervert’s home on Evergreen Avenue in Bushwick. That’s when Jose Bernard Perez, 70, approached and said he had a used bike to sell them, the sources said.

He then invited them to come look at the bike. When they did, he forced them into a car and locked the doors, the sources said.

The 9-year-old was able to escape and hide, but the older girl could not. Perez allegedly molested her, officials said.

After the incident, one of the girls told her mom, who called police. Perez was arrested Sunday night around 7 p.m., police said.

Perez was charged with sex abuse, forcible touching, endangering the welfare of a child and unlawful imprisonment for acts against the 11-year-old, police said. For abusing the 9-year-old, Perez was charged with endangering the welfare of a child and unlawful imprisonment.

Perez, who has two prior sex abuse cases, is listed as a level-three sex offender in New York State’s Division of Criminal Justice Sex Offender database.

He was arrested in 1999 for sexually abusing a 14-year-old female after locking her in his garage for two hours, police sources said. In 1994, he was charged with sex abuse and two counts of endangering the welfare of a child. The victim’s age in that case wasn’t available.

He hadn’t been arraigned as of late Monday.