A person who knowingly engages in any conduct that causes bodily injury to another person or damages the tangible property of another person, or threatens to do so, with intent to retaliate against any person for:
(1) The attendance of a witness or party at an official proceeding, or for any testimony given or any record, document, or other object produced by a witness in an official proceeding; or
(2) Any information relating to the commission or possible commission of an offense or a violation of a condition of probation, parole, or release pending a judicial proceeding given by a person to a law enforcement officer;
or attempts to do so, is guilty of a criminal offense. If the conduct results in bodily injury, such person is guilty of a felony of the second degree, punishable as provided in s. 775.082, s. 775.083, or s. 775.084. Otherwise, such person is guilty of a felony of the third degree, punishable as provided in s. 775.082, s. 775.083, or s. 775.084.