Luka Doncic fired for a 38-point triple-double but could not prevent the Dallas Mavericks from falling to a shock defeat to the New York Knicks.