LOS ANGELES – Lindsay Lohan accepted a plea deal Monday in a misdemeanor car crash case that includes 90 days in a locked-down rehabilitation facility that she won’t be able to leave.

The 26-year-old actress pleaded no contest to reckless driving, lying to police and obstructing officers who were investigating the accident involving the actress in June.

She was also found in violation of her probation in a 2011 necklace theft and sentenced to 180 days in jail.

However, she will be able to avoid jail time if she complies with the conditions of her plea deal that also includes 30 days of community labor and 18 months of psychological therapy.

Before the “Mean Girls” actress left the courtroom, Superior Judge Superior Court Judge James R. Dabney offered her a suggestion. “Don’t drive,” he said.