Any defender sliding through in the box like that is just asking for trouble. Whether or not he intentionally puts his foot down on the defenders trailing leg is almost irrelevant, the referee has only 1 angle in real time to make a judgement and 9 times out of 10 that's most likely a penalty.