You absolutely do have a choice. You just have to decide where your line is.
If you are asked to commit a crime by your employer, do you go ahead and do it for the sake of keeping your job? What about something legal yet highly questionable on moral grounds? Going ahead with an annoying UI feature you don't agree with is probably justified if the alternative is getting deported, but there's a threshold somewhere and it's different for everyone.