Yes, the people with power to declare stuff illegal can always say that whatever you’re doing is illegal before freezing your bank account. Was your comment meant to reassure me?
Your point stands that governments/courts decide what is illegal and that they have the power to freeze bank accounts when those accounts are used to fund illegal activities.