Hartlepool United suffered a first defeat in seven National League games after losing 4-3 to promotion-chasing Gateshead on Boxing Day.