Any person authorized by this chapter to make searches and seizures, or any person assisting him or acting under his directions, may, if deemed necessary by him or them, enter into or upon or pass through the lands, inclosures, and buildings, other than the dwelling house, of any person whomsoever, in the discharge of his official duties.