Purana Jyotisha Sangraha · by Vyasa
Chapter 8 · Dreams and Eclipse Rules
ब्रह्मवैवर्तपुराणम् : शुभाशुभस्वप्नाः ग्रहणनियमाश्च
कामतो यदि पश्यन्ति विनिन्द्यास्ते भवन्ति वै ।तस्मात्सन्तो न पश्यन्ति शापभीता व्रजेश्वर ॥ ५५ ॥
From the Brahmavaivarta Purana, print Krishna-janma Khanda ch 78, verse 55.
If they look on purpose, they become blameworthy. So the good do not look, afraid of curses, O lord of Vraja.
Simple meaning: Looking on purpose is said to bring blame, so good people avoid it.
राहुग्रस्तं रविं सोमं न पश्यन्ति विपश्चितः ।
The wise avoid looking at an eclipse, especially when the Sun is in certain houses from the birth sign.
जन्मर्क्षे निधनं चापि चतुर्थेऽपि कलानिधौ ।
The text lists times when the Moon should not be looked at, such as the 4th moon day of Bhadra.
चन्द्रस्तारापहरणं कलङ्कमतिदुष्करम् ।
Looking at the Moon on that day on purpose is said to bring a stain on one's name.