The entering creature must have power 4 or greater as it enters the battlefield, or Territorial Boar’s ability won’t trigger. Static abilities that raise (or lower) a creature’s power are taken into account. However, you can’t have a creature with power 3 or less enter the battlefield, raise its power with a spell, an activated ability, or a triggered ability, and have Territorial Boar’s ability trigger.