Oil falls but remains set for biggest monthly gain in years