In many ways, these have been tough days for Tesla. Falling sales. Squeezed profit margins. Proposed changes in US government policy that could cost the company billions.