On the invariance of Li–Yorke chaos of interval maps