I'm confident that Paul was not teaching the Corinthians to be 'self righteous' when he said this to them:
"1Now I make known to you, brethren, the gospel which I preached to you, which also you received, in which also you stand, 2by which also you are saved, if you hold fast the word which I preached to you, unless you believed in vain." (1 Corinthians 15:1-2 NASB bold mine)
Somewhere, somehow in the church faith got moved over to the side of works in Paul's faith vs. works argument. It is now being claimed that even faith itself if you think you have to have it to be saved is you trying to save yourself. Who brought this horribly misguided, uninformed doctrine into the church? This profound misunderstanding and twisting of Paul's faith vs. works argument has become the foundation for several major false doctrines in the Protestant church.
I believe that there is confusion caused by people conflating "good works" and "works of the law." They are not the same.
Paul said (Gal 2:16 NKJV) ... a man is not justified by the works of the law but by faith in Jesus Christ, even we have believed in Christ Jesus, that we might be justified by faith in Christ and not by the works of the law; for by the works of the law no flesh shall be justified.
But about good works he said:
Rom 2:7-10 (God) will render to each one according to his deeds: eternal life to those who by patient continuance in doing good seek for glory, honor, and immortality; but to those who are self-seeking and do not obey the truth, but obey unrighteousness--indignation and wrath, tribulation and anguish, on every soul of man who does evil, of the Jew first and also of the Greek; but glory, honor, and peace to everyone who works what is good, to the Jew first and also to the Greek.
Rom 6:12-13 … do not let sin reign in your mortal body, that you should obey it in its lusts. And do not present your members as instruments of unrighteousness to sin, but present yourselves to God as being alive from the dead, and your members as instruments of righteousness to God.
Rom 12:1-2 … present your bodies a living sacrifice, holy, acceptable to God, [which is] your reasonable service. And do not be conformed to this world, but be transformed by the renewing of your mind, that you may prove what [is] that good and acceptable and perfect will of God.
Rom 12:6-8 Having then gifts differing according to the grace that is given to us, let us use them: if prophecy, let us prophesy in proportion to our faith; or ministry, let us use it in our ministering; he who teaches, in teaching; he who exhorts, in exhortation; he who gives, with liberality; he who leads, with diligence; he who shows mercy, with cheerfulness.
Rom 12:9-13:1 [Let] love [be] without hypocrisy. Abhor what is evil. Cling to what is good.
[Be] kindly affectionate to one another with brotherly love, in honor giving preference to one another; not lagging in diligence, fervent in spirit, serving the Lord; rejoicing in hope, patient in tribulation, continuing steadfastly in prayer; distributing to the needs of the saints, given to hospitality.
Bless those who persecute you; bless and do not curse.
Rejoice with those who rejoice, and weep with those who weep.
Be of the same mind toward one another. Do not set your mind on high things, but associate with the humble. Do not be wise in your own opinion.
Repay no one evil for evil. Have regard for good things in the sight of all men.
If it is possible, as much as depends on you, live peaceably with all men.
Beloved, do not avenge yourselves, but [rather] give place to wrath; for it is written, "Vengeance [is] Mine, I will repay," says the Lord.
Therefore "If your enemy is hungry, feed him; If he is thirsty, give him a drink; For in so doing you will heap coals of fire on his head."
Do not be overcome by evil, but overcome evil with good.
Let every soul be subject to the governing authorities. For there is no authority except from God, and the authorities that exist are appointed by God.
Rom 13:5-8 Therefore [you] must be subject, not only because of wrath but also for conscience' sake. For because of this you also pay taxes, for they are God's ministers attending continually to this very thing.
Render therefore to all their due: taxes to whom taxes [are due], customs to whom customs, fear to whom fear, honor to whom honor. Owe no one anything except to love one another, for he who loves another has fulfilled the law.
Rom 13:13-14 Let us walk properly, as in the day, not in revelry and drunkenness, not in lewdness and lust, not in strife and envy. But put on the Lord Jesus Christ, and make no provision for the flesh, to [fulfill its] lusts
Rom 14:1-3 Receive one who is weak in the faith, [but] not to disputes over doubtful things. For one believes he may eat all things, but he who is weak eats [only] vegetables. Let not him who eats despise him who does not eat, and let not him who does not eat judge him who eats; for God has received him.
Rom 14:13 Therefore let us not judge one another anymore, but rather resolve this, not to put a stumbling block or a cause to fall in [our] brother's way.
Rom 14:15-16 Yet if your brother is grieved because of [your] food, you are no longer walking in love. Do not destroy with your food the one for whom Christ died. Therefore do not let your good be spoken of as evil;
Rom 14:19-21 Therefore let us pursue the things [which make] for peace and the things by which one may edify another. Do not destroy the work of God for the sake of food. All things indeed [are] pure, but [it is] evil for the man who eats with offense. [It is] good neither to eat meat nor drink wine nor [do anything] by which your brother stumbles or is offended or is made weak.
Rom 14:22-23 Do you have faith? Have [it] to yourself before God. Happy [is] he who does not condemn himself in what he approves. But he who doubts is condemned if he eats, because [he does] not [eat] from faith; for whatever [is] not from faith is sin.
Rom 15:1-2 We then who are strong ought to bear with the scruples of the weak, and not to please ourselves. Let each of us please [his] neighbor for [his] good, leading to edification.
Rom 15:7 Therefore receive one another, just as Christ also received us, to the glory of God.
1 Cor 5:9-13 I wrote to you in my epistle not to keep company with sexually immoral people. Yet
certainly [did] not [mean] with the sexually immoral people of this world, or with the covetous, or extortioners, or idolaters, since then you would need to go out of the world. But now I have written to you not to keep company with anyone named a brother, who is sexually immoral, or covetous, or an idolater, or a reviler, or a drunkard, or an extortioner--not even to eat with such a person. For what [have] I [to do] with judging those also who are outside? Do you not judge those who are inside? But those who are outside God judges. Therefore "put away from yourselves the evil person."
1 Cor 6:18 Flee sexual immorality. Every sin that a man does is outside the body, but he who commits sexual immorality sins against his own body.
1 Cor 7:10-11 Now to the married I command, [yet] not I but the Lord: A wife is not to depart from [her] husband. But even if she does depart, let her remain unmarried or be reconciled to [her] husband. And a husband is not to divorce [his] wife.
1Cor 7:20-24 Were you called [while] a slave? Do not be concerned about it; but if you can be made free, rather use [it]. For he who is called in the Lord [while] a slave is the Lord's freedman. Likewise he who is called [while] free is Christ's slave. You were bought at a price; do not become slaves of men. Brethren, let each one remain with God in that [state] in which he was called.
1 Cor 8:13 Therefore, if food makes my brother stumble, I will never again eat meat, lest I make my brother stumble.
1 Cor 10:7-10 And do not become idolaters as [were] some of them. As it is written, "The people sat down to eat and drink, and rose up to play." Nor let us commit sexual immorality, as some of them did, and in one day twenty-three thousand fell; nor let us tempt Christ, as some of them also tempted, and were destroyed by serpents; nor complain, as some of them also complained, and were destroyed by the destroyer.
1 Cor 10:12 Therefore let him who thinks he stands take heed lest he fall.
1 Cor 10:27-28 If any of those who do not believe invites you [to dinner], and you desire to go, eat whatever is set before you, asking no question for conscience' sake. But if anyone says to you, "This was offered to idols," do not eat it for the sake of the one who told you, and for conscience' sake; for "the earth [is] the LORD's, and all its fullness.
1 Cor 10:31-33 Therefore, whether you eat or drink, or whatever you do, do all to the glory of God. Give no offense, either to the Jews or to the Greeks or to the church of God, just as I also please all [men] in all [things], not seeking my own profit, but the [profit] of many, that they may be saved.
1 Cor 11:1 Imitate me, just as I also [imitate] Christ.
1 Cor 11:27-28 Therefore whoever eats this bread or drinks [this] cup of the Lord in an unworthy manner will be guilty of the body and blood of the Lord. But let a man examine himself, and so let him eat of the bread and drink of the cup.
1 Cor 11:33-34 Therefore, my brethren, when you come together to eat, wait for one another. But if anyone is hungry, let him eat at home, lest you come together for judgment.
And many more.