The best approach is to create a backup of important messages as the Mac does not have a feature to lock messages from being deleted.