Context
Doing God’s will and keeping the commandments leads to blessings and happiness in this life. It was also leads to eternal life in the world to come. Following the adversary will ultimately lead to unhappiness and damnation.
Satan tries to remove the proper context from our decisions. He tries to get people to focus on the “high” that comes from drug use and ignore the addiction, pain, and misery that comes from drug addiction. He tries to get us to focus on the fun and fulfillment of fornication while ignoring the emotional and spiritual consequences associated with those actions. Satan uses this tactic for ALL sins: sexual sins, dishonesty, murder, etc.
If we could view every situation the way God views it, we would never sin. That’s one thing I try to do in my life. I asked for help to view choices and situations the way God sees them.
Why are some gay LDS guys able to stay in the Church and follow the Gospel teachings? I submit that context is a big part of it. They can see how being gay fits into God’s plan. They can see how God could love them, allow them to be gay, and still require them to live His commandments. They can see how being gay and LDS is not ultimately a burden—but a blessing. They have faith and a proper context to allow them to face this challenge and be successful.