Overtraining will get you further than undertraining. If you’re working out two days a week, you’re not overtraining.
Listen to your body. It’ll let you know when you need to rest. Some weeks I can go 7 in a row without a rest day, but others I need 2 days off.