Fraudsters often target the accounts of the deceased or their grieving relatives. Here’s how to keep the scammers at bay.