When it comes to raising cash, things change, I remember once cash raise happened immediately after their value had increased much in a short interval, so it made sense to raise. And looking back, with the company being worth 666B now, they've done a lot of right calls, but of course some wrong ones as well.
And it's a myth that Tesla doesn't do any profit. For example last quarter Tesla got around 354M in regulatory credits (this is what the anti-tesla crowd likes to point out) but the net income was 1.14B. And besides the regulatory credit should be counted, not like the oil industry hasn't had it's insane amount of subsides over the years.