Warning comes after Taiwan announced plans to help those thinking of fleeing Hong Kong as Beijing draws up security law.