Iran is preparing to conduct swift trials and executions of antigovernment protesters, defying a warning from President Trump.