Valmiki Ramayana Aranya Kanda Sarga 51 Shloka 31
Original Shlokaपरेतकाले पुरुषो यत्कर्म प्रतिपद्यते।।3.51.31।। विनाशायात्मनोऽधर्म्यं प्रतिपन्नोऽसि कर्म तत्।
1 source checked for this shloka
पुरुषः man, परेतकाले at the time of death, यत् whatever, कर्म actions, प्रतिपद्यते does, अधर्म्यम् unrighteous, तत् such, कर्म action, आत्मनः yourself, विनाशाय for destruction, प्रतिपन्नः undertaken, असि you are.
You have resorted to unrighteous action like a dying man. This will spell your destruction.