Open System Settings, go to Security & Privacy, in the General tab you should see an option to open it anyway - you might have to click the padlock bottom left and authenticate first.
more info https://www.lifewire.com/fix-developer-cannot-be-verified-error-5183898