Illegal to tell someone that they are speaking to undercover cops?

Related and possibly relevant thread here: