It is an expression sometimes used in connection with a choice or a value judgement. The expectation is that the choice will be between one extreme or the other, yes or no, good or bad, stay or leave, black or white etc. It implies there is no 'middle ground' and no compromise or it seeks to deny the choice of a compromise.