If young earth creationism is true, then that is precisely what it is.
God setting traps for scientists.
God the Deceiver. “Hey, if I do it, it’s godly!” And if I do it? “You gonna die!”