I keep warning myself that don't take everything for granted.
或:
I keep warning myself not to take everything for granted.