It was not illegal to cash out at that time, but it was definitely illegal. If it is used for a long time, it will be frozen by the bank and forced to cancel. If the amount is huge, it will constitute an economic crime. You can refer to:
Notice on strengthening the security management of bank cards and preventing and cracking down on bank card crimes
/view/268 1756.htm