the currents at the base of the rock threatened to topple him , but he gripped on firmly and maintained his balance , precariously by swaying with the oncoming waves , giving to them a little instead of challenging them .