It's not really about the time, or about whether it's dark or not. You will never get a straight answer this way, because concepts of 'early' and 'late' vary from one person to the next and one culture to the next. And the sunset idea doesn't work either, because in some parts of the world it is dark before 4pm in winter. This isn't even evening, let alone night.
The best way to think of the difference is like this:
'In the evening' means before you go to bed. 'I often watch TV in the evening' refers to the whole period between your evening meal and bedtime. If you normally go to bed at midnight, then 11pm can still be classed as part of your 'evening'.
'At night' refers to the hours of darkness when you, or most other people, are sleeping. For example, 'My sister is a nurse, so she often has to work at night', or 'You should turn off your computer at night to save electricity'. Or, for example 'I often watch TV at night' might suggest, for example, that you wake up in the night and can't get back to sleep. So you maybe sit up in bed and watch TV for a while.
There are no hard and fast rules on this one, but I hope this gives you a general idea.