The trespass of a PO for weapons is prohibited
That is only for 30.05, no such protection for 06/07.
(i) This section does not apply if:
(1) the basis on which entry on the property or land or in the building was forbidden is that entry with a handgun or other weapon was forbidden; and
(2) the actor at the time of the offense was a peace officer, including a commissioned peace officer of a recognized state, or a special investigator under Article 2.122, Code of Criminal Procedure, regardless of whether the peace officer or special investigator was engaged in the actual discharge of an official duty while carrying the weapon.