MARTIN COUNTY, Fla. (CBS12) — A Martin County senior citizen nearly lost $600,000 to a gold bar scam, but with the help of deputies, the crisis was averted.

MCSO says that the victim was contacted by a fraudster claiming to be from his financial institution and was told that his bank account had been compromised. The scammer then convinced the senior citizen that he needed to protect his money by backing it up with gold.

According to MCSO, the victim was then instructed to send $600,000 to a legitimate gold vendor. The scammer told the victim that the gold would then be picked up by a third-party driver and delivered to the bank.

After going through with the transaction, the victim quickly realized something wasn’t right, and immediately went to his bank. The bank then recognized the situation as potential fraud and advised him to the sheriff’s office.

See also: Elderly woman accused of stealing nearly $2,000 worth of merchandise from Wellington Mall

The responding deputy then spoke directly with the gold vendor and helped the victim stop the transaction from going through.

MCSO says the victim confirmed he received a full refund of his $600,000.