Software engineers have faced moral dilemmas when pressured to engage in illegal activities at work. The article presents three case studies: Nishad Singh's involvement in the FTX fraud, a Frank engineer's refusal to fake customer data, and Pollen's CEO pushing for double charges on customers, highlighting the potential consequences of compliance versus integrity in the tech industry.