By having the banks report it to them.
For the non-wealthy it's not really a problem, and wealthy people still have substantial estate and gift tax exemptions.