That rule is dumb. The Nets would pay him $12M per year and the Heat have to pay around $18M+ in years 3 and 4. The gamble would be matching it and hoping that he improves so much that he's worth that contract in years 3 and 4 so that worst case they can trade him then.
He just has to be a decent player