Giving money to your loved ones early could be tax-efficient if you have the right plan.