SDA believe that by obeying God ( His ten commandments, including sabbath to be observed and kept in law) that God gives the Holy Spirit to those who obey God in that way....
Acts 5:32 And we are his witnesses of these things; and so is also the Holy Ghost, whom God hath given to them that obey him.
To obey God is to obey the truth ( truth and grace by Jesus Christ not by Moses John 1:17.
Truth is obeyed through the Spirit (nobody can obey then without the Spirit) and to obey God ( in the law of ten commandments as SDA, Messianic and Judaism) cannot be done without the Spirit....
1 Peter 1:22 Seeing ye have purified your souls in obeying the truth through the Spirit unto unfeigned love of the brethren, see that ye love one another with a pure heart fervently:
That shows why it was foolish and to be bewitched, and is not obeying the truth, ( of Jesus Christ set forth among them recognizing and believing in His resurrection)
The Apostle exhorts them that to receive the Spirit, was not as their assumed works of the law ( SDA think obeying God in 10 commandments is them receiving the Spirit)
Galatians speaks again, to the law keepers ( Judaism Messianists and SDA) how they are debtors to do the whole law, if they do one part of it such as circumcision.
That is because as witnessed, they seek to be justified by law, and is then them not as told, being hindered from obetying the truth..
Galatians 3:1 O foolish Galatians, who hath bewitched you, that ye should not obey the truth, before whose eyes Jesus Christ hath been evidently set forth, crucified among you?
2 This only would I learn of you, Received ye the Spirit by the works of the law, or by the hearing of faith?
3 Are ye so foolish? having begun in the Spirit, are ye now made perfect by the flesh?
Galatians 5:3 For I testify again to every man that is circumcised, that he is a debtor to do the whole law.
4 Christ is become of no effect unto you, whosoever of you are justified by the law; ye are fallen from grace.
5 For we through the Spirit wait for the hope of righteousness by faith.
6 For in Jesus Christ neither circumcision availeth any thing, nor uncircumcision; but faith which worketh by love.
7 Ye did run well; who did hinder you that ye should not obey the truth?
Of course Abraham is our example, and it is through faith, that they obey God, as Abraham did, Abraham through faith went where God wanted Him to go.
Again in James, faith is what show works of faith ( it cant then be the works of the law which are not faith as testified fror Israel, Galatians 3:12,, Romans 9:32)...
Hebrews 11:8 By faith Abraham, when he was called to go out into a place which he should after receive for an inheritance, obeyed; and he went out, not knowing whither he went.
James 2:18 Yea, a man may say, Thou hast faith, and I have works: shew me thy faith without thy works, and I will shew thee my faith by my works.
Abraham then we are told neither was not sought justification through works, but believing God is the righteousness.
The promise was not through the law, but through the righteousness of faith.
They of the law are not heirs ( of the promise by faith) and they ion the law are in wrath, and are in transgression, as the transgression of the law for Israel and those under the law is sin 1 John 3:4.)...
Romans 4:1 What shall we say then that Abraham our father, as pertaining to the flesh, hath found?
2 For if Abraham were justified by works, he hath whereof to glory; but not before God.
3 For what saith the scripture? Abraham believed God, and it was counted unto him for righteousness.
Romans 4:13 For the promise, that he should be the heir of the world, was not to Abraham, or to his seed, through the law, but through the righteousness of faith.
14 For if they which are of the law be heirs, faith is made void, and the promise made of none effect:
15 Because the law worketh wrath: for where no law is, there is no transgression.
The law never spoke to the Gentiles, the law only spoke to those under the law.
By the law is the knowledge of sin, as they were under the law of sin (I and death and curse for not continuing)
Now righteousness of God is without the law ( Israel, Messianic and SDA put themselves under)
It is thew righteousness of God by faith of Jesus Christ, upon all them that believe, as all sinned in the law of sin and death, and that was what the wrath of the law spoke to them and what we are no longer under and are freed from, Romans 8:1-4,, for the righteousness of the law fulfilled in us who believe in the righteousness of God and not seeking it by the works of the law as Israel sought and now seeks wrongly without faith in Gods righteousness...
Romans 3:19 Now we know that what things soever the law saith, it saith to them who are under the law: that every mouth may be stopped, and all the world may become guilty before God.
20 Therefore by the deeds of the law there shall no flesh be justified in his sight: for by the law is the knowledge of sin.
21 But now the righteousness of God without the law is manifested, being witnessed by the law and the prophets;
22 Even the righteousness of God which is by faith of Jesus Christ unto all and upon all them that believe: for there is no difference:
23 For all have sinned, and come short of the glory of God;
Romans 3:19 Now we know that what things soever the law saith, it saith to them who are under the law: that every mouth may be stopped, and all the world may become guilty before God.
Romans 9:32 Wherefore? Because they sought it not by faith, but as it were by the works of the law. For they stumbled at that stumblingstone;
Remembering then Romans 8:1-4, what we are freed from ( the law of sin and death that Israel and others are yet following) and assume that to obey the law is them fulfilling the righteousness of the law.
Not quite, as to love our neighbour as ourselves is the law fulfilled.
Bearing one another's burdens is the law fulfilled.
The law made nothing perfect, Hebrews 7:19, but the lively hope did, 1 Peter 1:3 ( following law is imperfection as Jesus told Israel ( Mark 10:18-24)
The love of God is then perfected in us, if we walk as Jesus walked ( laying His life down for His friends)...
Galatians 5:14 For all the law is fulfilled in one word, even in this; Thou shalt love thy neighbour as thyself.
Galatians 6:2 Bear ye one another's burdens, and so fulfil the law of Christ.
1 John 2:3 And hereby we do know that we know him, if we keep his commandments.
4 He that saith, I know him, and keepeth not his commandments, is a liar, and the truth is not in him.
5 But whoso keepeth his word, in him verily is the love of God perfected: hereby know we that we are in him.
6 He that saith he abideth in him ought himself also so to walk, even as he walked.
1 John 3:23 And this is his commandment, That we should believe on the name of his Son Jesus Christ, and love one another, as he gave us commandment.