Oil prices edged up on Thursday, held in check by threatened US tariffs on Canadian and Mexican crude imports that could take effect this weekend.