God knows the past, the present and the future. In that case, he had placed her in this world with the full knowledge that she would end up killing herself, and he would no longer shocked by her actions. -- This would work as great rationalisation for committing any kind of sin.