Tesla has been increasingly under attack since Elon Musk endorsed Donald Trump and became his senior adviser for the Department of Government Efficiency.