I’m no expression wizard, but I think I have a solution. You’ll need to tell it to use your expression if the comp time is less than where you want it to stop.
if (time < 1){;
(wiggle(5,7));
}else{;
transform.position}
time < 1 is saying only do the wiggle before the 1 second mark. transform.position is saying to use whatever position keyframes are set.
Sorry if I'm not explaining that well, but if you plug in your expression instead of the wiggle that should work.