Manipulating counter-rotating interactions in the quantum Rabi model via qubit frequency modulation