Here's a reference for your reading pleasure (though this is, I believe, U.S.-centric, so not exactly the case here)
https://www.quora.com/Are-undercover-cops-allowed-to-break-t...