Tump and Musk know exactly what they’re doing. The capitalist class uses racism and immigrant fearmongering to sow working class division and keep its focus away from its real enemy: the capitalist class.
Edit to add: Capitalists, often illegally, exploit immigrants for cheap labor, so you know their rhetoric is bullshit. How Capitalism Perpetuates Immigration