However I really think if God Himself dropped by and told me to stop doing something I would not have the guts to say, "Nah, it's fine".
Even Pagan Kings tended to decide to clean up their act when that happened.
But when God's "appearance" is just that "still, small Voice," we all are expert at ignoring and rationalizing it away. Indeed, Peter learned from the cock's crow that even when warned by Jesus Himself ahead-of-time, he still was weak.
Neither Solomon nor Peter had the benefit then of the indwelling Holy Spirit. We have that advantage over them.