Read Galatians 2 today.

In this chapter Paul was telling how he had to confront Peter because Peter had slipped into a belief system that included obedience to the law as a necessary part of being made right with God. This implies that a person is able to do enough on his/her own to earn a right relationship with God.
We can consider what happened and think, “How could Peter make such an obvious mistake?” I would argue that we must all be on guard against adding our personal requirements to what someone else needs to do in order to be made right with God. Do they need to attend the ‘right’ church? Or sing the ‘right’ kind of music in worship? Or dress the ‘right’ way?
It is God’s requirement for being made right with Him that matters, not mine.
Galatians 2:16 NLT
Yet we know that a person is made right with God by faith in Jesus Christ, not by obeying the law. And we have believed in Christ Jesus, so that we might be made right with God because of our faith in Christ, not because we have obeyed the law. For no one will ever be made right with God by obeying the law.”