US President Donald Trump has delivered a blunt warning to protesters at Tesla dealerships.