Imagine having to stand in front of Allah SAW and watch the sin being committed in front of you then having to explain it.
Allah SAW mentions in surah Ali Imran, verse 135,
“And those who, when they commit immorality or wrong themselves [by transgression], remember Allah and seek forgiveness for their sins…”
Keep the door or repentance open between you and Allah because He always ready to forgive you.