The danger of disregarding this counsel is illustrated in Proverbs chapter 7, where we read about a young man who goes for a stroll near the house of an immoral woman. Night is falling.
فَتُوَلِّدُ فِيهِ كَلِمَاتُهَا ٱلْمُغْوِيَةُ رَغْبَةً لَا يَسْتَطِيعُ مُقَاوَمَتَهَا ،‏ مَا يُؤَدِّي بِهِ إِلَى مُمَارَسَةِ ٱلْعَهَارَةِ مَعَهَا .‏