Donald Trump says he will use firearms against the migrant caravan if they throw rocks at US police and military.