keepMax

fun <T : CSEventProperty<Int>> T.keepMax(maxValue: Int, fire: Boolean = true): T