Paraphrase
16 In most cases, we ought to pray for those who are slipping into sin, although there are exceptions. God will respond to such prayers, and restore the fallen one. 17 All sin is unrighteous, but some sins are worse than others.
Key Verse
5:16 - the other is just clarification.
New Thoughts
The line between a slipping into sin, and a habit of abiding in sin is a thin line and dangerously easy to cross. The penalty for the latter is patently clear in the above set of scriptures - it will lead to a loss of the possibility of restoration for us, for we knew the consequences going in. In the former case, we can stop ourselves, and we can pray for the stopping of others before they or we have gone too far, before it's become more habit than accident. This seems the balance of scripture's lesson - taking the above verses alongside Romans. Scary to fail to understand correctly, given the potential consequences.