Compromise puts a person in a dangerous position, especially if that compromise is against spiritual principles you know from God. See the dire consequences that happened to Solomon as he compromised his principles.