Any engineer working for Google or Facebook can go get another job tomorrow. Maybe it won't pay quite as much, but it will still pay very very well in absolute terms.
If the "consequence" of making ethical career choices is you earn only $250,000/year instead of $300,000/year, you should probably reflect on why you value your soul so cheaply.