Suggestion: pay your rent on time and none of this will ever be an issue. And I wouldn’t bother “lawyering up” when you fail to pay your rent and get an official demand to pay what you owe. The law is not on your side and most courts will take a very dim view of the excuse that the gate is broken, especially when you never cared enough to complain.
Since you seem intent on missing the point people take an absolutist view towards a tenants responsibilities while taking a lax one towards landlords.
I don't think we're going to see eye to eye, and you've also never been a landlord or had any exposure to any of the legal side of this. It's all fine and dandy to claim that you'd "lawyer up" based on some hypothetical, but you wouldn't, and you'd lose quickly and embarrassingly if you did. I've evicted tenants, sadly, and never once did I worry that some minor maintenance issue from months before that they never complained about would even slow the process down, let alone stop it.
And you've probably never had to deal with shitty landlords judging from your response.
And as I keep mentioning but it seems to be conveniently ignored landlords are allowed to get away with breach of contract all the time in my experience as a renter. Which gets back to the point I keep belabouring: Tenants are expected to be perfect while landlords are not. Now can you explain why this is the case?