he started to double over and reached out a hand to lean on the rail at the end of the bed , but as his hand touched the metal , it passed through and he almost fell , managing to regain his balance at the last second .