Honestly?
You can't rly be sure if it is an evil entity if it didn't hurt you yet.
If I was you, I would try to talk with the spirit, hear it's story, Ask it to go away ("Can you please not come at night cause I need sleep, we can talk if you want to") or smth, to be polite
Just talk like it's your friend, you might hear something interesting too you never know what the spirit might be here for... it can be someone you knew.
Good Luck and get a nice sleep