Warriors scrape two-point win after Magpies stage 12-point comeback