God is an almighty creature that created everything, so he must have created sin too or at least the predecessor, wouldn't god be able to just create a perfect utopia where everybody can be happy? Well now you you probably think of something like Eden, god created Satan, no matter how you look...