4:31 PM PT -- We just got Tory leaving the courthouse, and while he didn't seem too worried about how things went with the judge, he certainly cared about how he looked, joking with our camera to make sure we got his better side.
Tory Lanezhas to fork over more bail money after prosecutors say he violated a court order to stay away from Megan Thee Stallion with his surprise appearance at Rolling Loud ... but at least he won't be behind bars.
Lanez was in an L.A. court Monday to learn his fate and he's gonna have to post a higher bail amount to stay out of jail while his criminal case is pending. The reason -- he violated a protective order requiring him to stay clear of Megan.
The judge also modified his bail conditions to specifically prohibit Tory from attending events where his alleged victim, Megan, will be present. The judge also said if this issue comes up again ... he will be remanded into custody. So, this was clearly his last warning.
Tory's bail was increased from $190k to $250k -- so he'll have to throw down a bit more dough to stay free.
TMZ broke the story ... prosecutors filed a motion earlier this month to hold TL in contempt for violating the restraining order. He made a guest appearance during DaBaby's Rolling Loud set, and he got within 100 yards of Megan, who also performed at the event