If God knew the world was going to be like this why did he created man.
You are correct that God knew "the world was going to be like this". With that knowledge He could have created man as a robot programmed not to sin, but instead He gave Adam a conscience (a moral sense), told him the rules and gave [...]