Deion Sanders scored BIG in his nasty legal war with estranged wife Pilar ... getting temporary custody of their kids PLUS a restraining order that keeps her 500 yards from his Dallas mansion.
During Monday's hearing, the judge also ruled Deion was only acting in self-defense when he injured Pilar during an altercation at the mansion on April 23. The judge said Pilar could face a fine for her role in the alleged attack.
The judge also ruled that Pilar and Deion's 3 minor children must undergo psychological counseling.
Deion and Pilar have been at each other's throats for months -- after Pilar claimed he was a no-good, cheating, narcissist.