Quentin Grimes dropped 17 in the fourth but Anthony Edwards poured in 18 in the final frame as the Timberwolves escaped with a win over the Sixers.