Stocks edge lower as Middle East conflict pushes oil higher