run foul of come into conflict with; go against.
☞ This expression is nautical in origin: when used of a ship it means 'collide or become entangled with an obstacle or another vessel'. Both literal and figurative uses were current by the late 17th century.