With JENNNIFER LOPEZ’s new BF facing charges of il­legal drag racing, her ex MARC ANTHONY has warned her: “Keep our twins away from your boy toy!”

The 42-year-old “American Idol” judge and hunky backup dancer Casper Smart, 24, have been insepa­rable for the past month.

But after learn­ing Smart has racked up a long string of speeding and traffic-related infractions, Marc is telling pals that he doesn’t want his 3-year-old twins with J.Lo, Emme and Max, riding in a vehicle that Casper is driving.

“Marc could care less if Jennifer wants to have occasional trysts with Casper,” divulged an insider close to the 43-year-old Latin heartthrob.

“But to bring someone with the mind-set of an out-of-control teenage boy into the lives of his children is simply not safe in his book.”

According to police records, Smart has been charged with speeding greater than 100 mph and illegal drag racing. He was also charged with driving without a valid license in 2004, 2006 and 2007, and evading electronic toll charges in 2005.

To top it off, he’s been busted for failure to display front and rear plates, and failure to register a vehicle.

SEE exclusive pix and legal docs only in the new ENQUIRER – on sale now!