raft: add helper func isOutOfAppliedBounds