Baby boomers who wish to pass an inheritance to the next generation must not do so at the expense of their long-term care, a financial adviser has warned.