As someone who has ridden with injuries, my personal rules are:
- if it hurts, stop doing it
- moving is better than not moving
- be mindful of how you're stressing the injured part(s)
- if it swells up, give it a rest
- NSAIDs are your friends
When I broke my hip, doc said no walking or biking for 12 weeks. I was on the trainer after 5 weeks, on the road after 6 weeks. I carried a folding cane in my jersey pocket, and I needed help getting on and off the bike. But I recovered well.