In an action to recover the possession on the land, tenement, or other real property where the entry is forcible or when the possession is unlawfully held by force, there shall be no inquiry into the merits of the title. Three years' quiet possession of the premises immediately preceding the commencement of the action by the party in possession or those under whom the party holds may be pleaded in bar thereof unless the estate of the party in the premises is ended.