The electric-car maker's business is stabilizing, but the stock's three-year path comes down to one expensive bet.