"And the LORD said unto Cain, Why art thou wroth? and why is thy countenance fallen? If thou doest well, shalt thou not be accepted? and if thou doest not well, sin lieth at the door. And unto thee shall be his desire, and thou shalt rule over him" (Genesis 4:6-7)
"Come now, and let us reason together, saith the LORD..." (Isaiah 1:18)
God definitely does not want sin to get the mastery over you. How do we know this?
Look how He "reasoned" with Cain. He placed one question after another before him to convince him of sin. He wanted him to recognize that the fault lie in himself and not in another. He wanted to bring him to repent and amend his ways.
"Sin" - like a crouching lion was waiting at the door ready to pounce on Cain. All he had to do was recognize the error of his ways. He simply had to accept the revelation - as Abel did - that sinful man could only approach the Holy God on the ground of the blood of a substitutionary sacrifice - not on the basis of a bloodless offering like fruits and vegetables.
"Why art thou wroth? and why is thy countenance fallen?" Is there a just cause for these sinful passions which are gripping your heart? How do you explain the angry, envious, and fretful look?
God will always offer a "way of escape" out of all temptation. He will offer a plan of redemption - show you a way whereby you may once again be accepted.
"If thou doest well..." This involves retracing your steps...considering your ways... finding out where you went wrong... and amending your intentions. If you repent and reform your heart and life, you will be accepted.
However, if you refuse and harden your heart to the gracious offer of acceptance, sin will ruin you. It will take you further than you want to go.
Is God reasoning with you about a particular sin?