What happen when autoAcceptAlert and autoDismissAlert are both set to true?

Hi,
I am facing an issue that the alerts are sometimes being accepted or dismissed.
I have due a little investigation and realize that my teammate has set the desired capability for autoAcceptAlert and autoDismissAlert both to true. I am wondering how this will work? Is it fine to set both to true?

I have been testing on IOS app using APPIUM 1.10.0 and Xcode 10.1