(c) It is an affirmative defense to prosecution under Subsection (b) that:
4) a person not acting under color of law intercepts a wire, oral, or electronic communication, if:
(A) the person is a party to the communication; or
(B) one of the parties to the communication has given prior consent to the interception, unless the communication is intercepted for the purpose of committing an unlawful act;