Brazil's Lula warns Washington against treating the nation as a 'tinpot republic' after US designates two major crime factions as terrorist groups.