Jews have developed the concept “fences about the Law.” Wikipedia explains:
“A khumra (חומרה; pl. חומרות, khumrot; alternative spelling: chumra) is a prohibition or obligation in Jewish practice that exceeds the bare requirements of Halakha (Jewish laws). One who imposes a khumra on themself in a given instance is said to be מחמיר makhmir. The rationale for a khumra comes from Deuteronomy 22:8, which states that when one builds a house, he must build a fence around the roof in order to avoid guilt should someone fall off the roof. This has been interpreted by many as a requirement to “build a fence around the Torah” in order to protect the mitzvot.
An obligation or prohibition can be adopted by an individual or an entire community. Early references to khumrot are found in the Talmud, and the understanding and application of them has changed over time.
Most often found in Orthodox Judaism, khumrot are variously seen as a precaution against transgressing the Halakha or as a way of keeping those who have taken on the stringency separate from those who have not.
A second meaning of khumra is simply “a stricter interpretation of a Jewish law (Halakha), when two or more interpretations exist”. This meaning is closely related to the first meaning, because people who follow the more lenient interpretation (qulla) believe that their interpretation is the baseline requirement of the law, and that people who observe the stringency are doing something “extra”. However, people who observe the khumra, in this sense, believe that they are following the baseline requirement, and to do any less would be to violate halakha entirely. Note that in many cases, a rule followed by the majority (or even totality) of halakha-observant Jews today is a stringency in comparison with more lenient rabbinic opinions which have existed in the past or even today. For example, universal halakhic practice today is to wait at least one hour (and even as much as six hours) after eating meat, before consuming milk. However, Rabbenu Tam, in 12th-century France, ruled that it was sufficient merely to conclude the meat meal by reciting a blessing and removing the tablecloth, and then milk could be consumed immediately. Thus, today’s universal halakhic practice of waiting between meat and milk would be considered a khumra in comparison to Rabbenu Tam’s ruling.”
Pence follows this concept. To avoid adultery, he avoids even being alone with a woman who is not his wife.
An individual or a community can also build fences about the law. I had to be away for my family for weeks at a time when I was working. I never went to bars, and always took a book to read when I was in a restaurant. I also practiced custody of the eyes; men are easily stimulated visually, so I took care not to admire feminine beauty.
To avoid sexual harassment (or worse) men should not make sexual advances by word or gesture. This in effect imposes chastity, which is not a popular virtue. We are in an impossible situation for men; any consensual activity is fine, but how can men determine if the woman gives consent if he does not make a sexual advance. no matter how trivial it might be. If the woman does not want it, it is harassment. So to avoid committing sexual harassment, men must avoid making any sexual advances. This is of course what chastity demands, but it is not what our culture teaches men.