"Is this really the way you want to end up in jail for the rest of your life, by texting and violating a court order?" asked Judge James Burke.
The Manhattan judge instructed the former Hollywood producer, who is out on bail, not to answer the question.
Mr Weinstein faces five charges and possibly life in jail if convicted.
The allegations include rape and predatory sexual assault relating to two unnamed accusers. He is charged with raping one woman in a Manhattan hotel room in 2013, and performing a forcible sex act on the second woman in 2006.
The Manhattan judge instructed the former Hollywood producer, who is out on bail, not to answer the question.
Mr Weinstein faces five charges and possibly life in jail if convicted.
The allegations include rape and predatory sexual assault relating to two unnamed accusers. He is charged with raping one woman in a Manhattan hotel room in 2013, and performing a forcible sex act on the second woman in 2006.
(BBC News)