Your initial argument painted the problem as a moral conundrum questioning where we draw "lines." I cannot agree with this sentiment. Codifying such intuitions into axiomatic rules is challenging but classifying a given situation without being aware of the codified rules is simple and intuitive.
As for your new argument, this is something I can partially agree with. If the landscape allows for such immoral behavior and thereby as a consequence requires everyone to adopt the same immoral behavior as a means to survive and stay competitive then I can't fully blame you for your actions.
That does not fully excuse it though. A Man dying of starvation may have no choice but to kill and eat his own child. The situation does not absolve the man of all guilt. Obviously, your situation is not as extreme, but the similarity it shares with you and your circumstances is the fact that you having no choice does not make you completely innocent. Apologies to everyone reading for the extreme example, the extremeness of the example helps fully elucidate the moral ambiguity associated with hard choices.
Also self justification flies far, people will come up with all kinds of excuses to give merit to their own actions. Is exploiting those loopholes truly absolutely necessary for survival? Or is it something you tell yourself without really knowing the full details? I don't know your exact case, but the above is a common trope people use to lie to themselves. People will refuse to look deeper into certain details that make them uncomfortable so they assume a reality that best justifies their actions.