My question got closed as off-topic with the reason that it's "asking for advice on what to do":
I am trying to understand why, and if there is anything more I can do to salvage the question.
The link of the close comment links to this meta post on The Workplace:
I am not even sure why a Workplace meta post counts as a reason to close on Programmers, but I followed the advice there anyway:
Another alternative is to edit your post to ask about why and how you should make the decision, rather than just what decision to make. For instance, instead of asking "Should I take the job in the big multi-national company or the up-and-coming startup?" you could ask a question that will help you make that decision, like "How can I figure out the financial health of a startup I am applying to by asking questions in an interview?"
So I edited the question to not ask for what I should do, but for information that helps me make the decision myself. The question got closed anyway.
Also I am not sure that the reason for closure in the meta post even applies to me:
Our goal here at The Workplace is to help out people in the future who are facing the same problem. When people ask us for personalized advice, a lot of the specific details will not apply to other people who come across the question since their details may be slightly different and they can't determine whether or not the answer is appropriate for their situation.
The problem in the question is pretty generic and I tried to keep it general enough so that it will be helpful to people with a similar problem (customers asking for something that violates someone else's TOS).
Someone mentioned that it is a matter of legal advice, but that's only a part of the problem really. Also, there are many other questions with a similar direction that weren't closed for that reason, for example:
What to do if you find a vulnerability in a competitor's site?
Both of those questions handle legal topics as well, but are deemed on-topic.
Can someone explain to me why my question is off-topic?
Is there a chance to edit it so it could be reopened? If yes, in what way should I change the question?
EDIT:
To make my point, this question is both about a legal topic and asking what to do (and in relation to a client asking for something risky as well on top!), and still is on-topic:
Should I accept to write unsecure code if my employer requests me to do so?
I really have a hard time to see where the line is between on- and off-topic questions here to be honest.