‘Crypto King’ tells judge he acted on legal advice