A test of the Suyama–Yamaguchi inequality from weak lensing