In 1 Corinthians 7:5 there is reason for temptation. We can move ourselves into the realm of temptation. By disobeying God, by covetousness, by lack of wisdom.
In this case a man could be tempted by Satan by not coming together again with his wife. In Peter's case it was pretty much the same as Job's; speaking foolishly. John 13:37 Job 38:2
Let us be wise as serpents and harmless as doves. Matt 10:16