F1 legend Jackie Stewart says teams should work within their budgets following the administration of Marussia and Caterham.