They are going to counteract eachother to an extent. You can keep your protein intake high and that'll help. Also eat small meals thru the day, that'll spead up your metabolism and it'll keep plenty of calories in your system all day. While you're doing cardio you can drink something with carbs in it like gatorade.