The grammar pattern てまで expresses that someone goes to an extreme or excessive length to achieve something. It conveys the speaker's sense of surprise, criticism, or strong emotion that the action taken is beyond what is normally expected or acceptable. It translates to "to the extent of doing ~", "going so far as to ~", or "even doing ~".
The verb before まで is in the て-form, and the clause that follows describes the purpose or result of going to such an extreme.
てまで almost always carries a negative or critical nuance from the speaker's perspective. The speaker feels that the action described by the て-form verb is an unreasonable, undesirable, or surprising sacrifice made in order to achieve something. Even when used in first person, it implies that the action is something one would rather not do.
A common variant is てまでして, which adds して for extra emphasis. It strengthens the feeling of going to an extreme and is interchangeable with てまで in most contexts.
てまで frequently appears with expressions like: