Permission Level for the user or group can be modified to restrict the user to edit in SharePoint designer.
সাইট সেটিংস -> Advanced Permissions
Click Advanced Permissions, Select Settings -> অনুমতি স্তর
You can add/edit existing permission level.
Uncheck Browse Directories Permission level.