Mets edge Phillies, 5-4