If we truly love God, then we will obey "Every word" that proceeds out of his mouth (Matthew 4:4). Baptism is one of those words. In order to be baptized, certain events must take place: You must repent, give up a lifestyle where sin has dominion, (ruler ship) over you. Sin according to 1 John 3:4, Whosoever committeth sin transgresseth also the law: for sin is the transgression (breaking) of the law. You must be taught "The Word", before you can adhere to God's commandments (judgments\statues). These laws are found in the Holy Bible; beginning with Genesis and ending with Revelation. You must believe what the bible says and finally, you must confess that Jesus is Lord. Once this has been accomplished, you are qualified to be baptized in the name of Jesus.
"Therefore let all the house of Israel know assuredly, that God hath made that same Jesus, whom ye have crucified, both Lord and Christ. Now when they heard this, they were pricked in their heart, and said unto Peter and to the rest of the apostles, men and brethren, what shall we do? Then Peter said unto them, "repent and be baptized every one of you in the name of Jesus Christ for the remission of sins, and ye shall receive the gift of the Holy Ghost." (Acts 2:38). “Know ye not, that so many of us as were baptized into Jesus Christ were baptized into his death? Therefore we are buried with him by baptism into death: that like as Christ was raised up from the dead by the glory of the Father, even so we also should walk in newness of life. knowing this, that our old man is crucified with him, that the body of sin might be destroyed, that henceforth we should not serve sin.” Romans 6:3-4,
"And he said unto them, go ye into all the world, and preach the gospel to every creature. He that believeth and is baptized shall be saved; but he that believeth not shall be damned." (Mark 16:15-16).