I am not sure whether I would be more surprised by the truth being “no other animal at any point in life understands they will die” or “some animals at some point understand they will die.” I would be pretty confident that not all animals do. Excluding humanity of course. My gut feeling is one or more species can understand.