Gavin Lux hit a walk-off, two-run double and the Los Angeles Dodgers avoided the sweep with a 5-4 win over the Philadelphia Phillies.