The well-known tax dodge is to avoid realizing gains by borrowing against your stock. Say you pledge $1b as collateral on a loan. If interest rates are lower than your stock appreciation, the loan is free. So you don’t ever need to realize the gains, even though you are unlocking capital.
Of course, in the bear market you could get a margin call and have to liquidate at unfavorable prices (and pay taxes then). But not if you are keeping a big enough buffer.
You’re also introducing the risk of being liquidated if there’s a big drawdown in the asset. If you borrow against your stock and then there’s a 50% drawdown, you could easily find yourself worse off than if you had just sold the stock.