It's only illegal if the referee says it's illegal.