Chinese President Xi Jinping issued the warning in his New Year's speech as Beijing continues military pressure around Taiwan.