Tesla is facing a price war, intense competition from Chinese players and weakening demand for its electric cars.