You have two options.
1. Claim spawn with safezone (/f claim <radius> safezone)
2. /rg flag <spawn region> denied-cmds f, <any other commands you don't want people to use in spawn>, example
The first one is recomended because with the second one, you won't be allowed to use /f anything.