when he reached the dam he walked down into the valley and got as close as he could to the gigantic stone wall , which rose high above him , far higher he guessed than even the tallest warehouses on the waterfront of his adopted city .