Read Only Depends On multiple roles

Read Only Depends On the following
eval:frappe.user.has_role(‘test’) != true;
eval:frappe.user.has_role(‘test2’) != true;

This works for the first line but ignores the second line
so only user test can edit the field not user with role test 2

Is there a way to do it based on user permission level for example user with perm level lower than 4 can only see it read only and 5 and above can edit the field

eval:!(frappe.user.has_role('test') || frappe.user.has_role('test2'))

try this

Thanks that works is the way to do it on user permission level so if lower than 2 then show read only if 3 or above the can edit