Someone living in sin is living outside of the will of God and it is the church's responsibility to try to help them repent...
Therefore, having been justified by faith, we have peace with God through our Lord Jesus Christ,Romans 5:1
Even in situations where it seems like nothing but evil and wrongdoing is happening, God will use it to His glory.