I'd venture to guess it's only with the premium brands, and only when buying new (or maybe used-certified) and only with a model with terrible fuel economy.
7 years would be, for the average American, 100k miles. (Assuming that $90k Tesla costs nothing at all to operate...) Even at a generous 35 cents a mile for fuel and maintenance, that leaves $55k for purchase cost, and that may not be exclusively premium-only "make" territory, but at a make like Honda, that's going to be a fancier model.
Take that per mile cost difference down to a more realistic 20 cents ($3.60/G, 30mpg, independent shop for maintenance, no tires or suspension since electric cars need those, too), and now it's $70k, well within premium brand territory.
Residual value of the Tesla is likely to be better, but if it was financed, that cost would be higher, too. I'm not sure how to estimate that.
However, there are also significant savings from being electric. So, it's possible to afford one on a developer's 100k/year salary especially if you keep it for ~10 years.