Be careful not to fall asleep.

Literal

Sleep-completely [so-that-ように] caution do.

眠ってしまわない = negative of 眠ってしまう ('fall asleep, completely sleep'). 気をつける ('to be careful') + ~ように ('so that') = 'be careful so that.' A warning common in settings where staying awake matters.