Freedom of speech is an unalienable right.
Free speech is never illegal, anywhere.
Unalieanable rights are rights that cannot be taken away, not even by a 100% majority vote. Unalienable rights cannot be legislated away, and they cannot be ruled away by a supreme court. Government institutions cannot add qualifiers to unalienable rights or dilute them.
The only thing governments can do with unalienable rights is infringe on them or protect them.