The fundamental thing you absolutely have to do: enable a master password in Firefox settings (Preferences > Security > Passwords). Without it, anyone with access to your PC can open the password manager and see all your login credentials in plain text. It's honestly not complicated to set up and it makes all the difference.
Now, here's the trap that others didn't explain well: even with a master password, Firefox doesn't ask you to re-enter it every time you browse. You enter it once at startup and then it stays unlocked until you close the browser or manually lock it. So if you leave your PC on and someone gets access to it, they can grab everything during that session. You need to be aware of that. Same thing, watch out for autofill on forms - not just passwords, but usernames too can be problematic on a shared PC or one that others have access to.
Honestly, to really sleep soundly, a dedicated password manager (Bitwarden, 1Password and the like) is more secure than a browser because they have extra encryption layers. But if you stick with Firefox, a master password plus some care about keeping your sessions locked, that's already way better than nothing.