Not all sin is the same. Jesus said there is a greater sin (John 19:11). 1 John 5:16-17 says there is a sin unto death and a sin not unto death. Jesus said to the Pharisees that they ignored the WEIGHTIER matters of the Law like: Love, justice, faith, and mercy (See Luke 11:42, and Matthew 23:23). Peter says in 1 Peter 3:21 that baptism is not for salvation. Yet, it is a command as a part of the great commission (Matthew 28:19). But Paul says that Christ did not send him to baptize but to preach the gospel (1 Corinthians 1:17). Psalms 19:12 talks about secret or hidden faults. Matthew 12:31-32 says that speaking bad words against the Holy Ghost can never be forgiven and speaking bad words against the Son (Jesus) can be forgiven. The sin of worshiping the beast in the future is so bad to GOD that their names are not even written in the book of life since the foundation of the world (See Revelation 13:8, and Revelation 17:8). Even life teaches us that not all sin is the same. For do you consider the breaking of the Law of going over the speed limit by 5 miles per hour (in driving a motor vehicle) as the same as the crime as murder? Surely not.
So what about James 2:10?
Well, this is the only verse that suggests (at first glance with a quick reading) that all sin is the same, and a reader who does use this verse to support this view has to do at the expense of ignoring so many other verses in the Bible.
James here is not talking about ceremonial laws in the New Covenant like baptism, the Lord's supper, etc. James is talking about the "Royal Law" (i.e. to love your neighbor) (James 2:8).
8 "If ye fulfil the royal law according to the scripture, Thou shalt love thy neighbour as thyself, ye do well:
9 But if ye have respect to persons, ye commit sin, and are convinced of the law as transgressors.
10 For whosoever shall keep the whole law, and yet offend in one point, he is guilty of all.
11 For he that said, Do not commit adultery, said also, Do not kill. Now if thou commit no adultery, yet if thou kill, thou art become a transgressor of the law." (James 2:8-11).
So in verse 10: When James says if you keep the whole Law , he is referring to the whole of the Royal Law (in loving your neighbor) and if you offend in one point in the keeping of this whole law of loving your neighbor, you are guilty of breaking all of God's laws. Verse 11 confirms this by it saying, "Do not commit adultery, said also, Do not kill. Now if thou commit no adultery, yet if thou kill, thou art become a transgressor of the law." Paul says that loving your neighbor is the equivalent of the Moral Law (like do not murder, do not covet, etc.) (See Romans 13:8-10).