While the player jumps up, rising in the air, the velocity.y is less than 0(vector direction upward), then falling is on the opposite way: the velocity.y is greater than 0.
So my code will be:
if not is_on_floor() and velocity.y <= 0:
#rising
elif not is_on_floor() and velocity.y > 0:
#falling