Then don't buy any stock in any company you don't absolutely trust? Why should you be able to profit from Tesla's wrongdoings, but not suffer just punishment from them too?
I believe the general argument here would be that if you invest in a company and they later are caught doing something illegal or unpopular, you suffer when your shares lose value.
Sorry class but the schoolteachers were all arrested for murder because their pension fund invested in a fund that bought shares in a company that bought another company that held shares in a company who owned a negligently maintained warehouse that burned down with two people trapped inside.