Solomon says 'It is good that you should take hold of this, and from that withhold not your hand, for the one who fears God shall come out from both of them Eccl 7:18 (ESV) think it through, if the legalistic religious fool is going to hell and the sinful man who thinks he has a licence to live what ever way he want is going to hell. Then sin is wrong and religion is wrong. Sin is a barrier to salvation and religion is a barrier to salvation. What we need is a proper understanding of God's word and of what God says about salvation. Solomon summaries it in two words 'fear God.'