he managed to keep his head above the water , but he was shivering with the cold , and he wondered if he would die of it before the luck turned , and how much longer he would be able to hang on , and whether he should risk the chance of letting go and trying to swim to the bank .