[...]
I need to enable it, but i'm afraid i lose my ssh so i can't get in anymore

i do have set ufw allow 22 though
Hm, no wonder everything is open then, unless you set the rules somewhere else.
You can do
ufw --dry-run enable
to see what "would" happen.
Is this on a VPS? Does it offer a "serial console" for recovery? (You would see this option on your config panel (if any)).