Updated

Dean McDermott’s ex-wife will have him sent to jail if he doesn’t pay half the child support that he owes her by Monday.

In a dramatic hearing in LA on Thursday, Tori Spelling’s husband was read his Miranda rights after being held in contempt of court for not paying thousands of dollars to ex-wife Mary Jo Eustace. Before sending him to jail, the judge gave McDermott and Eustace an opportunity to work out a deal.

McDermott is due to pay Eustace half of the cash on Monday (if he can find the money).

She withdrew the complaint, sparing him jail time. But insiders tell us that Eustace won’t hesitate to re-file as early as Tuesday and have him sent to the slammer if he doesn’t come up with the money.

In court McDermott, who has an 18-year-old son, Jack, with Eustace, told the court he had “fallen on hard times.” He reportedly stopped paying child support in October and faced eight counts of contempt — which have been dismissed, for now — one for each missed payment.

Reps didn’t immediately get back to us.

This article originally appeared in the New York Post's Page Six.