Hamas passes warning to Egypt and UN