Beijing’s investigation is a reminder that Trump isn’t the only leader with a habit for capricious decision making