> If you are turned down for a job
If you don’t take a job that would pay more you are also hurting your income opportunities. Turning a job down because of some hypothetical problem at some future date isn’t rational imo.
If you genuinely believe certain industries would hurt your future job prospects, you need to quantify the risk. And I have a hard time believing the particular industry would matter at all to an employer. If you can build CRUD apps for a gambling company you can build CRUD apps for a pediatric cancer charity.