Tesla has spent $20B so far. All of that money created a burst of carbon emissions which they haven’t yet offset though EV sales: especially since they sell pollution credits to other manufacturers. They’re still deeply in the hole.
It's a reasonable point, our economy is energy based and so the more you spend the bigger the environmental impact. We are trying to decouple it but we have a long way to go yet.
And what does this have to do with whether their products are good for the environment anyway? Whether it makes sense to take on debt to establish a new business seems completely orthogonal.