Walmart’s sales outlook is potentially a reflection of rising challenges ahead as consumers pull back on spending.