Committing sins with the hope of receiving intercession is like consuming poison with the hope of finding a good doctor, or like throwing yourself under a car and breaking all of your bones with the hope that you will find an expert orthopedic surgeon. Nobody would do this. Therefore, it is necessary to avoid sin at all times. It is a perilous matter for us to disobey Allah Almighty and His Messenger, and thereby making ourselves worthy of punishment in Hell with the hope that intercession will save us. We must always fear the hidden plan of Allah Almighty.
If our faith is ruined due to sins, then intercession will not avail us! By Allah! We will have to face the blazing fire of Hell and terrifying punishments for eternity. Yes, despite striving their utmost to avoid it, at times a person might unwillingly fall into sin. Such a person should continue seeking forgiveness, as well as seeking intercession from the beloved Prophet.