Every person who shall unlawfully use, or encourage or assist another in unlawfully using, any force or violence in entering upon or detaining any lands or other possessions of another; and every person who, having removed or been removed therefrom pursuant to the order or direction of any court, tribunal or officer, shall afterwards return to settle or reside unlawfully upon, or take possession of, such lands or possessions, shall be guilty of a misdemeanor.