Ayatollah Ali Khamenei vowed not to yield after US President Donald Trump threatened to come to the aid of protesters.