An implantable medical device and associated method provide atrial pacing and measure intervals between atrial pacing pulses and subsequently sensed ventricular events. A decreasing trend in the intervals indicative of a pre-junctional rhythm is detected. The atrial pacing pulse is delivered at a shortened atrial pacing pulse interval in response to detecting the decreasing trend to reduce the likelihood of a junctional rhythm.