Trump told not to treat courtroom as a 'political rally'