Tehran has threatened to target US military bases if US President Donald Trump intervenes on behalf of protesters.