Iran lawmaker says action against US, Israel would be legitimate