Detect if object is above line

please do not duplicate your questions here, thank you.