# For the one who said
This refers to God, who gave the law to Moses.
# Do not commit
To "commit" is to do an action.
# If you ... but if you ... you have
Here "you" means "each one of you." Although James was writing to many Jewish believers, in this case, he used the singular form as if he was writing to each person individually.