It will always struggle, as would a human translator. The concept of a perfect translation itself is just not achievable since languages are not just word-swapped copies of each other where each target language word has the exact same meaning as its counter-part in the source language.