US markets end on the edge ahead of Nvidia results, geopolitical tensions