I believe there's a limit to how much you can give away to your heirs while still alive. Probably if you give more, you have to pay extra tax. And I can imagine that if you gave away a lot just before your death and ended up with a lot of debt, debt collectors may still be able to get the gifts back, but I'm not entirely sure about that; I'm no expert on this.