 there are many ways for the wise person to deal with sins. god has not forbidden anything without replacing it with something permissible for his servants that is better than what is forbidden and more excellent. there is no god but him.
وإن عن المعاصي لمذاهب للعاقل واسعة، فما حرم الله شيئا إلا وقد عوض عباده من الحلال ما هو أحسن من المحرم وأفضل، لا إله إلا هو؛