when they at last reached the castle and approached the gates , he told her that it would be a battle , that she would need to find safety the moment they were past the gatesand that he would likely die that day .