after eating. u shouldn't sleep, cause once the food doesn't digest. it will cause a sleep paralyze.
second is u should close ur eyes hard before going to sleep, not a very soft closing eyes. make it hard and all dim. and always turn right or left. because if u sleep frontal then for sure it will attack u. trust me, this are the reason why people always suffers from it.