Is this behaviour normal on linux/fedora/gnome, it allows an app fill all the ram?

I remember that in windows this never happened , im using fedora workstation for like 2 years, and for me this is the biggest issue (i dont know if is a gnome/fedora or linux in general problem). Basically it allows the app (usually browsers ) to fill all the ram (16gb here and 8gb zram) and become unresponsive, needing to force close apps or turn off pc to reboot

Shouldnt be a way to prevent a misbehaviour app fill all the ram and crash the pc ?