Valmiki Ramayana Aranya Kanda Sarga 50 Shloka 7
Original Shlokaनिवर्तय मतिं नीचां परदाराभिमर्शनात्। न तत्समाचरेद्धीरो यत्परोऽस्य विगर्हयेत्।।3.50.7।। यथात्मनस्तथान्येषां दारा रक्ष्या विपश्चिता।
1 source checked for this shloka
नीचाम् mean, मतिम् in mind, परदाराभिमर्शनात् thought of touching another's wife, निवर्तय refrain yourself, परः others, अस्य his, यत् such deeds, विगर्हयेत् if he reproaches, तत् that, धीरः learned, न समाचरेत् should not adopt, विपश्चिता by the wise man, आत्मनः his own, यथा likewise, तथा in the same way, अन्येषाम् another's, दाराः wife, रक्ष्याः be protected.
Refrain yourself from the vile thought of violating other's wives. Wise men do not adopt what is censured by others. Just like one's own, the wise should protect other's wives.