When can the landlord come in?

Where is the line between taking care of the property and leaving the tenants alone? One of the sore-points for tenants is that some landlords are not respectful of the tenant’s right to “quiet enjoyment” of their space. A landlord may come in too frequently, may not give notice, and may not cooperate to enter