It does not mean that he encourages suicide. God does know when we are going to die. He also gave us free will. So if we choose suicide he could not stop us. I don't think that he wants us to kill ourselves, even though he knows when we will die. Also with suicide he can set a date for you...