Temporarily dup the layer, then copy and paste the keyframes?
Alternatively, wrap your expression in the following if block.
startTime = 1.3; //in seconds… change this
endTime = 4.5; //in seconds… change this
if((time>=startTime) && (time<=endTime)) {
//your code
} else {
value;
}