Do you have the 3.1.x firmware saved anywhere on your system? If yes, then you can do a restore and roll it back to old firmware. If not, then you are out of luck to do it officially, you need to search the unofficial means to get the legit firmware.
Apple doesn't give back dated firmwares. Caution though..incorrect firmware might brick your phone too.. research and backup is a mandatory.