As others have pointed out, it isn’t possible to hide Scripting block code from any user, and it isn’t currently possible to prevent users with editor permissions from changing Scripting block code. (I’m hoping that Airtable will adjust its permissions settings so that only creators can change scripting block code.) Scripting block code requires a button click to run–either the run button in the scripting block itself, or a button field in a table.
For automations with scripts, editors can view the automation script, but cannot edit the automations script.
If you have a custom block, only the person installing the block in the base has access to the code, and pushing code changes to a custom block is far more complex than changing code in Scripting block.
@Kamille_Parks also pointed out that free users will have access to Scripting block only “until September”, so you will either need to upgrade your workspace to a Pro subscription or a third party method of running code (such as @ScottWorld’s suggestion.)