Emails will not be deleted by Mail.app
Recommended settings for IMAP with mail.app

In


  Mail.app
  
  Preferences
  
  Accounts
  
  Select the account in question
  
  set Mailbox Behavior


see sample