I have read that meditation before sleeping is said to be effective in protecting oneself from assaults by negative entities in the astral realm.
I meditate before sleeping to ensure deep sleep without dreams. I don't have terrifying dreams, but I have noticed that bad or even good dreams nevertheless saps my energies upon waking and leaves me tired.
Meditation before sleeping ensures deep sleep without dreams, which is very refreshing upon waking up and leaves one energetic for the day's work.
I would advise you to keep off from all kinds of violent movies, tv , literature, music (which are mentally agitating) -before going to sleep, as well as abstaining from tea, coffee, colas and practice proper sleep hygiene. This is important because sleep consumes around 7-8 hours , nearly a third of our lives, and it is important to ensure quality sleep for health purposes.
Reading spiritual literature which is calming and relaxing can also help a lot, if you are not into meditation.
It is also important to take a light supper instead of a heavy one. I find that light suppers enable me to wake up earlier and sleep better.
You can compensate for the light supper by eating well at breakfast and lunch
As a popular adage goes, ' Eat breakfast like a king, lunch like a prince and supper like a pauper.'