Tesla ended June with about $2.2 billion in cash, the least it's carried since the first quarter of 2016.