Sadly, there is no context for this question, such as what alliance is meant. However, generally, a danger of entering an alliance is that the opponents of the alliance might attack you. So when Great Britain agreed to an alliance with Poland before the second World War, it had to enter a war with Germany, when it attacked Poland