Oil prices have fallen back, reversing earlier gains as traders fretted over global demand worries arising from the Chinese stock market rout.