if you deposit money into a credit card in advance without spending, you can't get this part of the money. If you want to withdraw it, you will charge a high handling fee, so it is not recommended to deposit cash in advance.
different issuing banks have different relevant regulations, which shall be subject to the actual regulations of the handling bank.