06/23/2011 AT 03:10 PM EDT
It turns out Lindsay Lohan
does not have the right to party.
After reportedly failing an alcohol test, Lohan was ordered Thursday to stop throwing parties at her Venice condo while under house arrest and to limit the number of visitors to one friend at a time.
Los Angeles Superior Court Judge Stephanie Sautner chided the actress for hosting a rooftop barbecue
at her home on June 12, telling her, "You are guilty of extremely poor judgment. House arrest is akin to jail."
But the judge did not send Lohan, 24, to jail for a probation violation in a DUI case, finding that court-ordered drug and alcohol testing had ended in February.
"Don't give people a reason to hate you. Don't do stupid things," said Sautner.
When the judge asked if she was ready to get on with her life, a relieved-looking Lohan answered, "Yes, I am."
Lohan was sentenced
in May to four months in jail after pleading no contest to stealing a $2,500 necklace. But she got house arrest of 35 days due to jail overcrowding and other factors.
The embattled actress quickly Tweeted her gratitude following the events in court.
"Thank you to all of my fans for your support," she wrote
. "Sending you Love and Light. xo."