I don't mind taking a shot with that much time left, it's the type of shot that was a head-scratcher.
People who think they should have fouled there are stupid and know nothing about basketball.
You could have fouled before they inbounded the ball and got the deadball foul.