The owner of such property, after he shall have paid to the person taking it up, or to the owner of such land, a just compensation for any proper care, labor, or expense bestowed, done, or incurred by him about such property, but not before, may enter upon such land for the purpose, and, doing as little injury as possible thereto, may remove such property, but shall pay to the owner of such land any damages to him occasioned by such entry and removal.