Shelley Malil

San Diego Union Tribune/ZUMA Press

If Shelley Malil did the crime, he may have to do a lot of time.

The character actor, one of Steve Carell's heavily accented coworkers in The 40-Year-Old Virgin, has been ordered to stand trial for allegedly stabbing his ex-girlfriend in a jealous rage in August.

Malil, who pleaded not guilty to premeditated attempted murder and related charges last summer, is facing life in prison if convicted.

He is accused of stabbing Kendra Beebe 23 times at her San Marcos, Calif., home Aug. 10 after arriving to find her having dinner with another man in the backyard. Beebe's two young children were in the house at the time.

According to the San Diego County District Attorney's Office, a next-door neighbor heard screaming and, poking his head over the fence, saw Malil attacking Beebe and ran over there to help. 

A judge ruled Wednesday that there was enough evidence to send the case to trial.