Karl-Anthony Towns drilled a 29-foot three-pointer with six seconds left on the clock as the New York Knicks escaped with a 113-108 win over the Toronto Raptors on Monday.