Lindsay Lohan has been ordered to refrain from drinking or doing drugs ... and if she dares to try she could end up behind bars.
Judge Marsha Revel laid down the law during a hearing this AM in Beverly Hills court. Judge Revel told Lindsay in order to stay free on bail, she cannot drink alcohol, she must wear a SCRAM device and she must submit to random drug testing.
Lindsay must begin wearing the SCRAM bracelet within 24 hours.
Lindsay must also attend all scheduled alcohol ed classes at least once a week.
Lindsay's lawyer, Shawn Chapman Holley, began to object to the conditions, but when the judge said she would state out loud all the reasons why the conditions were appropriate -- Holley backed off and accepted the conditions.
And the judge indicated Lindsay must stay in the L.A. area -- which will get in the way of shooting a movie in Texas. The judge basically said, tough luck.
Mind you ... the conditions the judge imposed must be met in order for Lindsay to remain free on bail. The judge is also scheduling a hearing to determine if Lindsay has violated her probation -- the date for the hearing is July 6.
If the judge decides Lindsay violated her probation by not attending her alcohol ed program as required ... she could be jailed for 180 days.