Obama offers Trump 'a good rule of thumb'