This should work:
idxs1 = AAA[0, 1] > AAA[0, 0] 

idxs will be an index mask containg True and False, where True means that the condition for AAA[0, 1] > AAA[0, 0] holds. So you would access those values by AAA[idxs]
the same should work for the other condition:
idxs2 = AAA[0, 1] > threshold 

To get the indexes where it holds for both you would do
idxs3 = idxs1 & idxs2

or
idxs3 = torch.logical_and(idxs1, idxs2)