The moral law, obedience to the knowledge of good and evil, is not wrong or bad in and of itself. It is simply knowledge which is the same knowledge God declared to have when God stated that man has become like us, but the problem is when one believes that there is life in obedience to this law. When one believes that because they are a good person and therefore they have a right to go to heaven or experience eternal life, then they have missed the purpose of the moral law all together. The moral law only reveals to someone when they have done good or bad, right or wrong, but it does not empower them to do good nor does it have the ability to give life. Eternal life can only come from understanding and receiving ones value and identity as a son of God through the reconciliation which took place in Christ Jesus. These are totally separate issues yet because of the influence the moral law can have in one’s life instead of seeing themselves as a son of God, they tend to find their value and identity in what they do.
This is the same issue which Paul addressed in Romans 7. Paul was made alive at his conversion on the road to Damascus, but at some point was tempted when some desire arose in his heart. Because Paul said that he returned to be under the law, he must have tried to resist this desire through his own willpower but finally came to his senses and rested in his identity as a son of God reconciled by Jesus. When we are tempted it is not wrong to resist but our resistance should come from the position of knowing who we are as sons and walking in our inherit value and identity from God our Father. When we try to resist outside of that identity through willpower then one’s resistance is only as strong as their will and if even it is successful in one case temporarily, it does not permanently remove that desire and teaches one to rely on their own will power instead of their identity, which will power will fail at some point and again does not create life.