Giving a gift, or selling for less than true value, can cause problems when done before bankruptcy, but usually only if the amount is large.
Usually it’s not hard to avoid getting into a dispute with your trustee. But you need to know the law and follow it.
Which assets that you sell or give away before filing bankruptcy will be a problem, and which won’t?
Your assets can include property and possessions that you have sold or given away before filing bankruptcy.