US President Donald Trump has repeatedly threatened to intervene to protect demonstrators amid a deadly crackdown by Iranian security forces.