Jesus was addressing the scribes and Pharisees here. Legalists under the law for righteousness by works. What I suspect you claim are "good works".
The DEAD WORKS of the devil and those like him ( unbelievers/legalists) is sin. Such will not submit to the righteousness of God, and instead seek to establish their own righteousness under the law.
rom 10:4
For they being ignorant of God's righteousness, and going about to establish their own righteousness, have not submitted themselves unto the righteousness of God.
Believers however, have repented of their DEAD WORKS, Heb 6:1.
Our faith is counted for righteousness now, Rom 4:5
The good works that Christians do that shows our faith is to believe on Jesus, John 6:29.
But those into "bad works" are those in unbelief. They remain under the law for righteousness by works. Such often follow a lukewarm mix of grace with works of the law. And in doing this they reject that Jesus is the Christ, as we cannot mix grace with works of these law, Rom 11:6.
And remember John 8:44 that the devil is a liar, and the father of it?
And who is a "liar"?
1John 2:22-25
Who is a liar but he that denieth that Jesus is the Christ? He is antichrist, that denieth the Father and the Son.
Whosoever denieth the Son, the same hath not the Father: he that acknowledgeth the Son hath the Father also.
Let that therefore abide in you, which ye have heard from the beginning (the gospel of grace). If that which ye have heard from the beginning (the gospel of grace) shall remain in you, ye also shall continue in the Son, and in the Father.
And this is the promise that he hath promised us, even eternal life.
Good works = believe on Jesus, John 6:29
bad works = unbelief= righteousness by deeds of the law or even a lukewarm mix of grace with works of the law.
I believe that you have mans doctrine during the time of Jesus confused with God's doctrine during the time of Moses. They are certainly not the same. They are against each other.
John 7:16-19 (KJV)
[SUP]
16 [/SUP]Jesus answered them, and said, My doctrine is not mine, but his that sent me.
[SUP]
17 [/SUP]If any man will do his will, he shall know of the doctrine, whether it be of God, or
whether I speak of myself.
[SUP]
18 [/SUP]He that speaketh of himself seeketh his own glory: but he that seeketh his glory that sent him, the same is true, and no unrighteousness is in him.
[SUP]
19 [/SUP]
Did not Moses give you the law, and yet none of you keepeth the law? Why go ye about to kill me?
John 5:44-47 (KJV)
[SUP]
44 [/SUP]How can ye believe, which receive honour one of another, and seek not the honour that
cometh from God only?
[SUP]
45 [/SUP]Do not think that I will accuse you to the Father: there is
one that accuseth you,
even Moses, in whom ye trust.
[SUP]
46 [/SUP]
For had ye believed Moses, ye would have believed me: for he wrote of me.
[SUP]47 [/SUP]But if ye believe not his writings, how shall ye believe my words?
The following is the law. God's law, not man's, or the Pharisaical law.
Deuteronomy 6:1-5 (KJV)
[SUP]
1 [/SUP]Now these
are the commandments, the statutes, and the judgments, which the LORD your God commanded to teach you, that ye might do
them in the land whither ye go to possess it:
[SUP]
2 [/SUP]That thou mightest fear the LORD thy God, to keep all his statutes and his commandments, which I command thee, thou, and thy son, and thy son's son, all the days of thy life; and that thy days may be prolonged.
[SUP]
3 [/SUP]Hear therefore, O Israel, and observe to do
it; that it may be well with thee, and that ye may increase mightily, as the LORD God of thy fathers hath promised thee, in the land that floweth with milk and honey.
[SUP]
4 [/SUP]Hear, O Israel: The LORD our God
is one LORD:
[SUP]
5 [/SUP]
And thou shalt love the LORD thy God with all thine heart, and with all thy soul, and with all thy might.
Leviticus 19:11-18 (KJV)
[SUP]
11 [/SUP]Ye shall not steal, neither deal falsely, neither lie one to another.
[SUP]
12 [/SUP]And ye shall not swear by my name falsely, neither shalt thou profane the name of thy God: I
am the LORD.
[SUP]
13 [/SUP]Thou shalt not defraud thy neighbour, neither rob
him: the wages of him that is hired shall not abide with thee all night until the morning.
[SUP]
14 [/SUP]Thou shalt not curse the deaf, nor put a stumblingblock before the blind, but shalt fear thy God: I
am the LORD.
[SUP]
15 [/SUP]Ye shall do no unrighteousness in judgment: thou shalt not respect the person of the poor, nor honour the person of the mighty:
but in righteousness shalt thou judge thy neighbour.
[SUP]
16 [/SUP]Thou shalt not go up and down
as a talebearer among thy people: neither shalt thou stand against the blood of thy neighbour: I
am the LORD.
[SUP]
17 [/SUP]Thou shalt not hate thy brother in thine heart: thou shalt in any wise rebuke thy neighbour, and not suffer sin upon him.
[SUP]
18 [/SUP]Thou shalt not avenge, nor bear any grudge against the children of thy people,
but thou shalt love thy neighbour as thyself: I am the LORD.
John 14:15 (KJV)
[SUP]
15 [/SUP]If ye love me, keep my commandments.
Matthew 22:37-40 (KJV)
[SUP]
37 [/SUP]Jesus said unto him, Thou shalt love the Lord thy God with all thy heart, and with all thy soul, and with all thy mind.
[SUP]
38 [/SUP]This is the first and great commandment.
[SUP]
39 [/SUP]And the second
is like unto it, Thou shalt love thy neighbour as thyself.
[SUP]
40 [/SUP]
On these two commandments hang all the law and the prophets.
Jesus gave the God's law to Moses because He is the creator of all. The Pharisaical law is man's law not God's.
Colossians 1:16-20 (KJV)
[SUP]
16 [/SUP]For by him were
all things created, that are in heaven, and that are in earth, visible and invisible, whether they be thrones, or dominions, or principalities, or powers: all things were created by him, and for him:
[SUP]
17 [/SUP]And he is before all things, and by him all things consist.
[SUP]
18 [/SUP]And he is the head of the body, the church: who is the beginning, the firstborn from the dead; that in all
things he might have the preeminence.
[SUP]
19 [/SUP]For
it pleased the Father that in him should all fulness dwell;
[SUP]
20 [/SUP]And, having made peace through the blood of his cross,
by him to reconcile all things unto himself; by him,
I say, whether
they be things in earth, or things in heaven.
John 12:28 (KJV)
[SUP]
28 [/SUP]Father, glorify thy name. Then came there a voice from heaven,
saying,
I have both glorified it, and will glorify it again.
Mark 3:25 (KJV)
[SUP]
25 [/SUP]And if a house be divided against itself, that house cannot stand.
Am I saying God's law brings salvation by the works thereof? No
Nevertheless we should not negate it with mistaking rhetoric that doesn't match all scripture.