Tesla, with rising EV competition, Musk’s political ties, and a shifting focus away from autos fueling its decline.