I'm pretty sure that, while the trade deadline is ~2 months before the playoffs start in the NBA, teams don't have to set their rosters until a few days before the playoffs. I think that they can sign free agents and whatnot up until that latter deadline.