At first glance, it looks like people can lose their salvation, but when I am studying the Bible, I like to study it in context instead of just looking at those two verses.
Here is Hebrews 10:26-30 in both the New King James Version and New Century Version:
Hebrews 10:26-39
New King James Version (NKJV)
26 For if we sin willfully after we have received the knowledge of the truth, there no longer remains a sacrifice for sins, 27 but a certain fearful expectation of judgment, and fiery indignation which will devour the adversaries. 28 Anyone who has rejected Moses’ law dies without mercy on the testimony of two or three witnesses. 29 Of how much worse punishment, do you suppose, will he be thought worthy who has trampled the Son of God underfoot, counted the blood of the covenant by which he was sanctified a common thing, and insulted the Spirit of grace? 30 For we know Him who said, “Vengeance is Mine, I will repay, ”says the Lord. And again, “The Lord will judge His people.”31 It is a fearful thing to fall into the hands of the living God.
32 But recall the former days in which, after you were illuminated, you endured a great struggle with sufferings: 33 partly while you were made a spectacle both by reproaches and tribulations, and partly while you became companions of those who were so treated; 34 for you had compassion on me[
h] in my chains, and joyfully accepted the plundering of your goods, knowing that you have a better and an enduring possession for yourselves in heaven.
35 Therefore do not cast away your confidence, which has great reward. 36 For you have need of endurance, so that after you have done the will of God, you may receive the promise:
37 “For yet a little while,
And He[
j] who is coming will come and will not tarry.
38 Now the[
k] just shall live by faith;
But if anyone draws back,
My soul has no pleasure in him.”
39 But we are not of those who draw back to perdition, but of those who believe to the saving of the soul.
Hebrews 10:26-39
New Century Version (NCV)
26 If we decide to go on sinning after we have learned the truth, there is no longer any sacrifice for sins. 27 There is nothing but fear in waiting for the judgment and the terrible fire that will destroy all those who live against God. 28 Anyone who refused to obey the law of Moses was found guilty from the proof given by two or three witnesses. He was put to death without mercy. 29 So what do you think should be done to those who do not respect the Son of God, who look at the blood of the agreement that made them holy as no different from others’ blood, who insult the Spirit of God’s grace? Surely they should have a much worse punishment. 30 We know that God said, “I will punish those who do wrong; I will repay them.”And he also said, “The Lord will judge his people.” 31 It is a terrible thing to fall into the hands of the living God.
32 Remember those days in the past when you first learned the truth. You had a hard struggle with many sufferings, but you continued strong.33 Sometimes you were hurt and attacked before crowds of people, and sometimes you shared with those who were being treated that way.34 You helped the prisoners. You even had joy when all that you owned was taken from you, because you knew you had something better and more lasting.
35 So do not lose the courage you had in the past, which has a great reward. 36 You must hold on, so you can do what God wants and receive what he has promised. 37 For in a very short time,
“The One who is coming will come
and will not be delayed.
38 Those who are right with me
will live by faith.
But if they turn back with fear,
I will not be pleased with them.”
Habakkuk 2:3–4 39 But we are not those who turn back and are lost. We are people who have faith and are saved.