No, it isn’t illegal to change your CPAP pressure setting, but for safety reasons, it should only be done with the supervision of your healthcare provider.