The clerk's quick thinking likely saved the man from losing $30,000 to the scam.