... From here you learn how severe is the punishment of transgression; and not only that, but concerning it Solomon prophesies (Proverbs 7:25): "Let not your heart turn aside to her ways." Why? "For she has cast down many wounded." What is written after it (Proverbs 7:26): "Her house is the way to Sheol," and so on. From here Rabbi Meir used to say: Happy is the one who keeps his heart far from a married woman and from transgression, and who calls to wisdom; for because he calls to wisdom, he is answered with understanding.
Rabbi Meir on the Many Slain by the Strange Woman
Midrash Mishlei 7:1
... מכאן אתה למד, כמה קשה עונשה של עבירה, ולא עוד אלא שעליה מתנבא שלמה: (משלי ז כה): "אל ישט אל דרכיה ליבך", למה? "כי רבים חללים הפילה", מה כתיב אחריו - (משלי ז כו): "דרכי שאול ביתה וגו'". מכאן היה רבי מאיר אומר: אשרי מי שמרחיק ליבו מאשת איש ומן העבירה, וקורא לחכמה, שמתוך שקורא לחכמה - נענה בתבונה: