pos_limit_fail function

function to check for violation of position limits constraints