The Dodgers rallied in the ninth inning, but squandered a chance to put the game away in a 5-4 loss to the New York Mets to cap a 2-5 homestand.