I don't understand your last question here. Sin comes from the heart of man.
Let's look at the sin of Satan, since it was the first recorded to speak of, okay?
Satan is a creature. He was created by God. He was declared as good and "no evil found in him." But the intent to "become like God" and "rise" in that sinful way had to begin somewhere. You have indicated you believe that originated in the 'heart of the creature.' Okay so far?
Now, if the sin originated in the heart of Satan, and God foreknew Satan would intend this evil and permitted it, then you have to admit that something (evil) Satan created/originated informed God. God didn't originate or create the evil, but he was informed through foreknowledge of the evil and created Satan anyway.
Now, if you believe that God's foreknowledge and permission of Satan's evil is equal to his determining evil to occur, then why even mess with using the words "foreknow" and "permit?" Why not just say God determined/caused/originated evil? The reason we don't say that is because scripture uses the words foreknow and permit and is CLEAR that God is not the one who even tempts men to evil and that He is completely holy.
By presuming through human logic that God's perfectly knowing something "PRIOR" to creating it means that he must have been it's cause or determiner goes further than scripture ever goes. Even the use of the word PRIOR when speaking of a timeless and eternal being is non-sensical and steps into speculation about mysterious we do not even have the capacity to fully comprehend. Calvinism oversteps its bounds by drawing logical conclusions based upon their limited finite scope.