Law enforcement personnel shall have access, at all reasonable times, to all hotels and motels, except occupied guestrooms, unless so authorized by other laws, ordinances or by the hotels and motels, for the purpose of investigating any complaint or enforcing any law, ordinance, or regulation. Nothing in this section creates a landlord-tenant relationship between the guest and the hotel or motel.