Your lawyer, typically $800 to $1,500 for a residential file, holds sale proceeds in a trust account and closes the transaction through Information Services Corporation, and any email claiming their banking details changed should be treated as suspicious until verified by a call to the office directly.
Fraudsters time these emails around a possession date, when they know a large transfer is imminent, and a spoofed email address can look identical to the real one at a glance. Never wire funds based on instructions received only by email.
The other real protection is knowing what your home is actually worth before you list it, since an inaccurate asking price is its own kind of financial exposure. Get your hand-reviewed valuation from Joel Dyck.