First of all, do you confirm whether you have a credit card? If not, you can report to the police that someone is posing as a court staff member and may be suspected of fraud. Never return that call directly. Find the telephone number of the court through public directory numbers such as 1 14 or 12580, and then call to ask.
Secondly, which bank did he tell you? Go to the branch of this bank with your ID card to check whether there is a credit card processing record in your name.
Third, confirm that you didn't do it yourself, ask to freeze this credit card, and explain to the police and bank staff that you didn't apply for this bank card, but your ID card information and phone number have been applied for.
There are many such situations now, and these identity information are known by strangers and then illegally used.