[verb て-form] + ばかりはいられない [verb て-form] + ばかりもいられない
は may be replaced with も; both convey the same meaning.
The grammar structure てばかりはいられない expresses the idea that one cannot keep on doing only one thing – that it's time to stop and move on to something else, or that the current situation demands action. It conveys a sense of urgency or resolve, often implying that while the speaker might want to continue doing something (or remain in a certain state), circumstances don't allow it.
It is formed by attaching ばかり (only, nothing but) and はいられない (cannot remain/stay) to the て-form of a verb. The literal sense is "cannot remain only doing ~."
This pattern is used with verbs that describe an unproductive or passive state – such as なく泣く (cry), なやむ悩む (worry), おちこむ落ち込む (feel down), あそぶ遊ぶ (play), やすむ休む (rest), or あまえる甘える (depend on others). The speaker recognizes the need to change their behavior.
The expression carries a self-motivating or self-critical tone. It is used when the speaker is talking to themselves or encouraging someone to snap out of a passive state. It does not sound harsh – rather, it conveys determination or gentle urging.
The particle は can sometimes be omitted, giving てばかりいられない, which has the same meaning but sounds slightly more casual:
Also, the polite form てばかりはいられません is used in formal contexts.