Three times, in three separate epistles, the Apostle Paul gives what is essentially a list of sins, followed by a statement to the effect of "they which do such things shall not inherit the Kingdom of God":
1 Corinthians 6:9-11
9 Know ye not that the unrighteous shall not inherit the kingdom of God? Be not deceived: neither fornicators, nor idolaters, nor adulterers, nor effeminate, nor abusers of themselves with mankind,
10 Nor thieves, nor covetous, nor drunkards, nor revilers, nor extortioners, shall inherit the kingdom of God.
11 And such were some of you: but ye are washed, but ye are sanctified, but ye are justified in the name of the Lord Jesus, and by the Spirit of our God.
Ephesians 5:5-6
5 For this ye know, that no whoremonger, nor unclean person, nor covetous man, who is an idolater, hath any inheritance in the kingdom of Christ and of God.
6 Let no man deceive you with vain words: for because of these things cometh the wrath of God upon the children of disobedience.
Galatians 5:19-21
19 Now the works of the flesh are manifest, which are these; Adultery, fornication, uncleanness, lasciviousness,
20 Idolatry, witchcraft, hatred, variance, emulations, wrath, strife, seditions, heresies,
21 Envyings, murders, drunkenness, revellings, and such like: of the which I tell you before, as I have also told you in time past, that they which do such things shall not inherit the kingdom of God.
Because each of these verses are used to teach a works-based Salvation, it's important to understand what is being said here.
Firstly, before looking at any consequences, let's establish which sins will bring about whatever the consequences turn out to be.
The cumulative list of sins, which will cause one not to "inherit", are:
There are at least 24 distinct sins here, which encompass a broad range of other sins, and to top it all off, we are given "and such like" (Galatians 5:21), which could reasonably apply to just about any other sin.
These commandments combined easily encompass nine out of the Ten Commandments. Therefore, if we are being given a road map to get to Heaven, via avoidance of these sins to an unspecified degree, then we are saved by keeping the Law, a doctrine repudiated to the point of absurdity in the New Testament (Acts 13:39, Romans 3:21-22, 3:28, 9:31-32, 10:4, Galatians 2:16, 3:11, 3:21-24, Philippians 3:9, etc.), as covered in this article.
Therefore, the first indication that this is not some sort of list of rules, which if kept to some unknown degree, will get one to Heaven, is that keeping this list would require not just works, but sinless perfectionism - if we are to escape the condemnation of "and such like" from Galatians 5:21 - which is not how one obtains Salvation (Ephesians 2:8-9).
The key to understanding these passages is to recognize that all three speak of "inheriting" the Kingdom, and "inheriting" is different from "entering". For instance, notice that "entering" a house is far different from "inheriting" that house. When you "enter" a business, you have not "inherited" that business. The words are different in Greek, and used purposefully by God.
"Entering" the Kingdom is freely obtained by faith in Christ, as can be gleaned from looking at verses discussing "entering" the Kingdom, and comparing Scripture with Scripture:
Inheriting the kingdom, however, will depend on your obedience, which will determine whether you rule in the kingdom (Luke 19:17-19), and get rewards in the kingdom (1 Corinthians 3:12-15), as is covered in this article on rewards.
This distinction between the "gift" of Eternal Life (Romans 6:23) and an "inheritance" in the sense of a reward can be seen clearly in the following passage:
Colossians 3:23-24
23 And whatsoever ye do, do it heartily, as to the Lord, and not unto men;
24 Knowing that of the Lord ye shall receive the reward of the inheritance: for ye serve the Lord Christ.
Above, we see a "the reward of the inheritance" for "service".
This theme of increasing our inheritance in the coming Kingdom as a result of service is manifest elsewhere as well:
Revelation 2:26
26 And he that overcometh, and keepeth my works unto the end, to him will I give power over the nations:
2 Timothy 2:12-13
12 If we suffer, we shall also reign with him: if we deny him, he also will deny us:
13 If we believe not, yet he abideth faithful: he cannot deny himself.
Matthew 19:29
29 And every one that hath forsaken houses, or brethren, or sisters, or father, or mother, or wife, or children, or lands, for my name's sake, shall receive an hundredfold, and shall inherit everlasting life.
So, our experiences in the Kingdom are not going to be equal. The Apostle Paul will not have the same experience of the Kingdom as the dying thief. We inherit the Kingdom on a spectrum.
In all three passages, the new birth is alluded to, or contrasted with the unregenerate. 1 Corinthians 6:11 mentions our justification, washing in the blood of Christ, and the indwelling of the Holy Spirit. Ephesians 5:6 mentions the children of disobedience, who will be subject to God's wrath, in distinction from believers (1 Thessalonians 1:10, 5:9, Romans 5:9). Then, Galatians 5:19 mentions the fact that these are works of the unregenerate flesh, is has nothing good in it (Romans 7:18).
So, the reason for these "sin lists", along with reminders that they which do such things won't inherit the Kingdom, is the Apostle Paul teaching by contrast. He is contrasting a believer walking in the New Man with an unregenerate person, or even the believer's own unregenerate flesh, as a reminder that that part of them will not inherit the Kingdom, and has no business being walked in.
This point is made very clear later in 1 Corinthians, where the Apostle Paul says:
1 Corinthians 15:50
50 Now this I say, brethren, that flesh and blood cannot inherit the kingdom of God; neither doth corruption inherit incorruption.
Above, we see that "flesh and blood cannot inherit the Kingdom of God", and the only part of a believer that is even capable of doing any of the sins mentioned in all three of our "sins lists" is the flesh, because a believer's New Man is sinless (1 John 3:9, 5:18). Therefore, doing any of them is a sign one is walking in the flesh, and so the Apostle Paul reminds us three times not to. It won't inherit the Kingdom, and has no part with us.
In the above verse, we also see the contrast between "corruption" and "incorruption", and again, it's serving as an exhortation to "walk in the Spirit", and to "not fulfil lust of the flesh" (Galatians 5:16).
Finally, these passages also serve as warnings against being "deceived" (1 Corinthians 6:9, Ephesians 5:6) by false prophets who teach that sin is inconsequential. Though Hell is not at stake for any believer, chastening in this life is (Hebrews 12:6).
In summary, none of these verses teach works Salvation. They are a few of many reminders that the Apostle Paul gives in the Epistles to walk in the New Man, which is the topic of this article, if you'd like some further reading.