Whether a particular act is, in fact, illegal may have to await final determination by a court of law or other adjudicative body.
A court of law can also look at previous cases related to the act and see how it was decided then.