Be transparent in all your actions. Avoid situations that could lead to improper relationships, like getting too close to someone in an inappropriate way. Also, set boundaries for yourself. If you find yourself attracted to someone else, immediately distance yourself and talk to your wife about it. Let her know that you value your marriage and are committed to her.
Firstly, maintain a strong emotional connection with your wife. Spend quality time together, engage in activities you both enjoy. Secondly, practice self - control and respect for your marriage vows. When faced with temptation, remind yourself of the love and commitment you have for your wife. And thirdly, if you ever have a wandering thought or are in a situation that could be misconstrued, be upfront with your wife. This way, you can build a relationship based on trust and avoid any secrets that could harm it.