As long as you have maintained your status and not violated anything, your visa stamping expiration does not matter. You can continue to work until your OPT period is done. If you leave the country and try to re-enter, then you will need to have valid visa and you would need to go for stamping at that time. Always keep in contact with your DSO and make sure your have valid I-20 and your status is maintained properly.